#(baileyc889) Question about event switches
11 messages · Page 1 of 1 (latest)
(baileyc889) Question about event switches
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.
!e entity teleports
Entity
entity teleports <entity> teleports
cause:<cause> to only process the event when it came from a specified cause.
when an entity teleports.
when the entity being teleported is a player. - this adds switches flagged:<flag name> + permission:<node>, in addition to the <player> link.
when the entity being teleported is an NPC.
<context.entity> returns the EntityTag.
<context.origin> returns the LocationTag the entity teleported from.
<context.destination> returns the LocationTag the entity teleported to.
<context.cause> returns an ElementTag of the teleport cause - see !language teleport cause for causes.
"ORIGIN:<LocationTag>" to change the location the entity teleported from.
"DESTINATION:<LocationTag>" to change the location the entity teleports to.
True - this adds switches in:<area> + location_flagged:<flag name>.
True - this adds <context.cancelled> and determines cancelled + cancelled:false.
^ grab areas from origin or destination as appropriate
Can do. Wasn’t sure if the switch passed anything along