added support for block predicate argument support and tag_matches function. Fixes #563
This commit is contained in:
1 parent
076ad62fad
commit
e15afd9763
16 files changed
+187
-13
No files matched your search
@@ -163,6 +163,12 @@ Consult section about container operations in `Expression` to learn about possib
|
||||
Excapes all the special characters in the string or nbt tag and returns a string that can be stored in nbt directly
|
||||
as a string value.
|
||||
|
||||
### `tag_matches(daddy_tag, baby_tag, match_lists?)`
|
||||
|
||||
Utility returning `true` if `baby_tag` is fully contained in `daddy_tag`. Anything matches `null` baby tag, and
|
||||
Nothing is contained in a `null` daddy tag. If `match_lists` is specified and `false`, content of nested lists is ignored.
|
||||
Default behaviour is to match them.
|
||||
|
||||
### `parse_nbt(tag)`
|
||||
|
||||
Converts NBT tag to a scarpet value, which you can navigate through much better.
|
||||
|
||||
@@ -19,12 +19,14 @@ create_marker
|
||||
current_dimension
|
||||
custom_dimension
|
||||
day_time
|
||||
delete_file
|
||||
destroy
|
||||
diamond
|
||||
display_title
|
||||
draw_shape
|
||||
drop_item
|
||||
emitted_light
|
||||
encode_nbt
|
||||
entity_area
|
||||
entity_event
|
||||
entity_id
|
||||
@@ -62,6 +64,7 @@ modify
|
||||
nbt
|
||||
neighbours
|
||||
opacity
|
||||
parse_nbt
|
||||
particle
|
||||
particle_line
|
||||
particle_rect
|
||||
@@ -87,11 +90,13 @@ scoreboard
|
||||
scoreboard_add
|
||||
scoreboard_remove
|
||||
scoreboard_display
|
||||
tag_matches
|
||||
team_add
|
||||
team_list
|
||||
team_remove
|
||||
team_leave
|
||||
team_property
|
||||
read_file
|
||||
see_sky
|
||||
set
|
||||
set_biome
|
||||
@@ -119,4 +124,5 @@ update
|
||||
view_distance
|
||||
volume
|
||||
without_updates
|
||||
world_time
|
||||
world_time
|
||||
write_file
|
||||
@@ -80,7 +80,8 @@
|
||||
|
||||
plop harvest destroy schedule nbt draw_shape create_marker remove_all_markers
|
||||
|
||||
load_app_data store_app_data escape_nbt statistic
|
||||
load_app_data store_app_data read_file write_file delete_file
|
||||
escape_nbt parse_nbt encode_nbt tag_matches statistic
|
||||
</Keywords>
|
||||
<Keywords name="Keywords3">euler pi null true false</Keywords>
|
||||
<Keywords name="Keywords4">x y z p</Keywords>
|
||||
|
||||
Reference in new issue
Block a user