Przeglądaj źródła

修改村民的外观

HerobrineXia 5 lat temu
rodzic
commit
680a45f7cd
1 zmienionych plików z 6 dodań i 2 usunięć
  1. 6 2
      data/mini/functions/trade/tick1.mcfunction

+ 6 - 2
data/mini/functions/trade/tick1.mcfunction

@@ -1,4 +1,8 @@
 scoreboard players add $1tick mem 1
 scoreboard players add $1tick mem 1
-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"}'
-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"}'
+# 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"}'
+# 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"}'
+
+execute if score $1tick mem matches 1 as @e[type=villager,tag=TradePlayer] run data modify entity @s VillagerData.type set value "minecraft:snow"
+execute if score $1tick mem matches 2 as @e[type=villager,tag=TradePlayer] run data modify entity @s VillagerData.type set value "minecraft:swamp"
+
 execute if score $1tick mem matches 2 run scoreboard players set $1tick mem 0
 execute if score $1tick mem matches 2 run scoreboard players set $1tick mem 0