#(flshjones) help with if entity has_tag script

23 messages · Page 1 of 1 (latest)

glad troutBOT
#

(flshjones) help with if entity has_tag script

#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

molten hedge
#

Your flag command is wrong

compact basalt
#

pray tell

molten hedge
#

!c flag u

fallen basinBOT
# molten hedge !c flag u
Group

core

Syntax

flag [<object>|...] [<name>([<#>])](:<action>)[:<value>] (expire:<time>)

Short Description

Sets or modifies a flag on any flaggable object.

Use to create or set a flag on a player.
- flag <player> playstyle:aggressive
Use to set a temporary flag for five minutes on a player.
- flag <player> just_did_something expire:5m
Use to flag an npc with a given tag value.
- flag <npc> location:<npc.location>
Use to apply mathematical changes to a flag's value on a unique object.
- flag <context.damager> damage_dealt:+:<context.damage>
Use to add an item to a server flag as a new value without removing existing values.
- flag server cool_people:->:<[player]>
Additional Usage Examples

... and 4 more.

molten hedge
#

You did - flag entity some_flag

#

entity is just plain text

#

If you want to flag the damaged* entity, you do - flag <context.entity> some_flag

compact basalt
#

tysm :, ) its always the little things i miss

molten hedge
#

Also

#

Instead of an if check for flag

#

you could just do on player damages entity_flagged:flag_name

compact basalt
#

ooo thank u so much, very helpful!!

molten hedge
#

!lang advanced object machables

fallen basinBOT
#
Possible Confusion

Did you mean to search for advanced object matchables?

fallen basinBOT
# molten hedge !lang advanced object machables

Script events have a variety of matchable object inputs, and the range of inputs they accept may not always be obvious.
For example, an event might be "player clicks <block>"... what can "<block>" be filled with?

"<block>" usually indicates that a LocationTag and/or MaterialTag will be matched against.
This means you can specify any valid block material name, like "stone" or "air", like "on player clicks stone:" (will only run the event if the player is clicking stone)
You can also use a catch-all such as "block", like "on player clicks block:" (will always run the event when the player clicks anything/anywhere)
You can also use some more complicated matchables such as "vanilla_tagged:", like "on player clicks vanilla_tagged:mineable/axe:" (will run if the block is mineable with axes)
(Fo...

Group

Object System

molten hedge
#

Thats the doc that explains stuff like that ^

compact basalt
#

thanks again :) big help

molten hedge
#

yw

agile lightBOT
#

@compact basalt

Thread Close Blocked

Thread was closed either automatically by timeout or by the Discord manual close button. If closing was intentional, please use </resolved:1028673926114594866> or </invalid:1028673926898909185>.