Преглед на файлове

村民交易升级bug修复

HerobrineXia преди 5 години
родител
ревизия
c99e72e929
променени са 1 файла, в които са добавени 6 реда и са изтрити 6 реда
  1. 6 6
      data/mini/functions/trade/game/villager_level_up.mcfunction

+ 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