villager_tp2.mcfunction 413 B

1234567
  1. tag @s add tpPlayer
  2. data modify entity @s Pos set from entity @a[tag=tempPlayerTp,limit=1] Pos
  3. data modify entity @s Rotation[0] set from entity @a[tag=tempPlayerTp,limit=1] Rotation[0]
  4. data modify entity @s Rotation[1] set value 0f
  5. tag @s add tpTemp
  6. execute at @s run function mini:trade/game/villager_tp3
  7. execute if entity @a[tag=noVillager,tag=tempPlayerTp] at @s run function mini:trade/game/villager_rebirth