tp.mcfunction 318 B

1234567
  1. # as rule marker
  2. # with rgb_op
  3. execute store result score #rgb_tp rgb_sys run data get entity @s data.event[{type:'tp'}].value
  4. data modify entity @s data.tp set from entity @s data.event[{type:'tp'}].direction
  5. execute if entity @s[nbt={data:{tp:'up'}}] as @a[tag=rgb_op] at @s run function mini:rgb/game/events/tp_up