HerobrineXia пре 5 година
родитељ
комит
84e66ee226

+ 1 - 6
data/item/functions/special/clear_effect.mcfunction

@@ -1,9 +1,4 @@
-# 清除buff
-effect clear @a[tag=consume_apple] absorption
-effect clear @a[tag=consume_apple] regeneration
-effect clear @a[tag=consume_apple] fire_resistance
-
-# 返还buff
+# 重置buff
 execute as @a[tag=consume_apple] run function mini:main/give_effect
 
 # 重置 tag

+ 1 - 5
data/mini/functions/main/lose_heart_effect.mcfunction

@@ -1,6 +1,2 @@
-effect clear @a[tag=have_totem] regeneration
-effect clear @a[tag=have_totem] fire_resistance
-effect clear @a[tag=have_totem] absorption
-effect give @a[tag=have_totem] resistance 999999 4 true
-effect give @a[tag=have_totem] instant_health 1 10 true
+execute as @a[tag=have_totem] run function mini:main/give_effect
 tag @a[tag=have_totem] remove have_totem