Convert Query To Tag Addon!
Addons for Minecraft PE
Hello creators! This add-on allows you to handle entity queries with the /tag command. You won't have to put a lot of command blocks and armor stands anymore! Future updates may increase the number of queries that can be handled.
e.g.1 /testfor @a[tag=is_gliding]
Detects players flying in elytra.
e.g.2 /kill @a[tag=3d_facing_up]
Kills the player facing up.
Note: It is not possible to edit the tag of a dead player. Therefore, such a command may cause the kill to be repeated in some cases. To prevent this, please add another argument.
Or, if the health value is 21 or more, the tag "health_21_more" will be given.
Absorption effect hearts are not counted.
e.g. /effect @a[scores={"health_value"=..4}] regeneration 5 5
Rapidly heals when the player has 2 or less hearts remaining.
To visualize the scoreboard, run "/scoreboard objectives setdisplay ~~".
If you are asked to allow notifications, refuse 5 times and you can download.
Tags list
Common tags
- is_moving
- is_alive
- is_breathing
- is_gliding
- is_in_water
- is_invisible
- is_jumping
- is_on_ground
- is_on_fire
- is_riding
- is_selected_item
- is_using_item
- is_sleeping
- is_sneaking
- is_sprinting
- is_swimming
- item_is_charged
- last_hit_by_player
Direction tags
・3d direction
Any one of these is always true.- 3d_facing_down
- 3d_facing_up
- 3d_facing_north
- 3d_facing_south
- 3d_facing_west
- 3d_facing_east
・2d direction
Any one of these is always true.- 2d_facing_north
- 2d_facing_south
- 2d_facing_west
- 2d_facing_east
How to use
Write them in a target selector of the command you want to use.e.g.1 /testfor @a[tag=is_gliding]
Detects players flying in elytra.
e.g.2 /kill @a[tag=3d_facing_up]
Kills the player facing up.
Note: It is not possible to edit the tag of a dead player. Therefore, such a command may cause the kill to be repeated in some cases. To prevent this, please add another argument.
Extra
Get health value by scoreboard
When the health value is between 0 and 20, the value is set in the "health_value" of the scoreboard.Or, if the health value is 21 or more, the tag "health_21_more" will be given.
Absorption effect hearts are not counted.
e.g. /effect @a[scores={"health_value"=..4}] regeneration 5 5
Rapidly heals when the player has 2 or less hearts remaining.
To visualize the scoreboard, run "/scoreboard objectives setdisplay ~~".
Installation
Sorry about the ads.If you are asked to allow notifications, refuse 5 times and you can download.
Supported Minecraft versions
- 1.16.221
Downloads
Comments (0)
Add
Information
Users of Guest are not allowed to comment this publication.
Users of Guest are not allowed to comment this publication.