villager_tp2.mcfunction 446 B

12345678
  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. scoreboard players set @s temp 0
  7. execute at @s run function mini:trade/game/villager_tp3
  8. execute if entity @a[tag=noVillager,tag=tempPlayerTp] at @s run function mini:trade/game/villager_rebirth