Răsfoiți Sursa

村民交易升级bug修复

HerobrineXia 5 ani în urmă
părinte
comite
c99e72e929

+ 6 - 6
data/mini/functions/trade/game/villager_level_up.mcfunction

@@ -1,7 +1,7 @@
 execute store result score @s temp2 run data get entity @s Xp
-execute if entity @s[nbt={VillagerData:{level:4}}] if score @s Xp matches 250.. run tag @s add upgradeVillager
-execute if entity @s[nbt={VillagerData:{level:4}}] if score @s Xp matches 250.. run data modify entity @s VillagerData.level set value 5
-execute if entity @s[nbt={VillagerData:{level:3}}] if score @s Xp matches 150.. run tag @s add upgradeVillager
-execute if entity @s[nbt={VillagerData:{level:3}}] if score @s Xp matches 150.. run data modify entity @s VillagerData.level set value 4
-execute if entity @s[nbt={VillagerData:{level:2}}] if score @s Xp matches 70.. run tag @s add upgradeVillager
-execute if entity @s[nbt={VillagerData:{level:2}}] if score @s Xp matches 70.. run data modify entity @s VillagerData.level set value 3
+execute if entity @s[nbt={VillagerData:{level:4}}] if score @s temp2 matches 250.. run tag @s add upgradeVillager
+execute if entity @s[nbt={VillagerData:{level:4}}] if score @s temp2 matches 250.. run data modify entity @s VillagerData.level set value 5
+execute if entity @s[nbt={VillagerData:{level:3}}] if score @s temp2 matches 150.. run tag @s add upgradeVillager
+execute if entity @s[nbt={VillagerData:{level:3}}] if score @s temp2 matches 150.. run data modify entity @s VillagerData.level set value 4
+execute if entity @s[nbt={VillagerData:{level:2}}] if score @s temp2 matches 70.. run tag @s add upgradeVillager
+execute if entity @s[nbt={VillagerData:{level:2}}] if score @s temp2 matches 70.. run data modify entity @s VillagerData.level set value 3