tick1.mcfunction 709 B

12345678
  1. scoreboard players add $1tick mem 1
  2. # execute if score $1tick mem matches 1 as @e[type=villager,tag=TradePlayer] run data modify entity @s CustomName set value '{"text":"BABA IS MORE"}'
  3. # execute if score $1tick mem matches 2 as @e[type=villager,tag=TradePlayer] run data modify entity @s CustomName set value '{"text":"BABA IS LESS"}'
  4. execute if score $1tick mem matches 1 as @e[type=villager,tag=TradePlayer] run data modify entity @s VillagerData.type set value "minecraft:snow"
  5. execute if score $1tick mem matches 2 as @e[type=villager,tag=TradePlayer] run data modify entity @s VillagerData.type set value "minecraft:swamp"
  6. execute if score $1tick mem matches 2 run scoreboard players set $1tick mem 0