HerobrineXia 6 лет назад
Родитель
Сommit
752a702e13

+ 1 - 1
data/item/functions/special/enchanted_apple.mcfunction

@@ -8,7 +8,7 @@ execute if score $state mem matches 5 if score @s mini_heart matches 1.. run tel
 
 
 # 归还苹果
 # 归还苹果
 execute if score $state mem matches 5 unless score @s mini_heart matches 1.. run tellraw @s ["",{"text": ">> ","color":"aqua","bold": true},{"text":"你只能在存在生命计数的小游戏中食用生命果!","color":"aqua"}]
 execute if score $state mem matches 5 unless score @s mini_heart matches 1.. run tellraw @s ["",{"text": ">> ","color":"aqua","bold": true},{"text":"你只能在存在生命计数的小游戏中食用生命果!","color":"aqua"}]
-execute if score $state mem matches 5 unless score @s mini_heart matches 1.. run give @s enchanted_golden_apple
+execute if score $state mem matches 5 unless score @s mini_heart matches 1.. run give @s minecraft:enchanted_golden_apple{display:{Name:'{"text":"附魔生命果","italic":0}',Lore:['{"text":"小游戏中生命值加倍","italic":0,"color":"gray"}']},bonus_new:0b,bonus_return:1b,is_bonus:1b,item_name:'{"text":"附魔生命果","color":"aqua"}'}
 
 
 # 检测小游戏是否去除特殊效果
 # 检测小游戏是否去除特殊效果
 execute if score $state mem matches 5 if score $mini_type mem matches 5 run scoreboard players set $t_remove_resistance mem 1 
 execute if score $state mem matches 5 if score $mini_type mem matches 5 run scoreboard players set $t_remove_resistance mem 1 

+ 1 - 1
data/item/functions/special/golden_apple.mcfunction

@@ -8,7 +8,7 @@ execute if score $state mem matches 5 if score @s mini_heart matches 1.. run tel
 
 
 # 归还苹果
 # 归还苹果
 execute if score $state mem matches 5 unless score @s mini_heart matches 1.. run tellraw @s ["",{"text": ">> ","color":"aqua","bold": true},{"text":"你只能在存在生命计数的小游戏中食用生命果!","color":"aqua"}]
 execute if score $state mem matches 5 unless score @s mini_heart matches 1.. run tellraw @s ["",{"text": ">> ","color":"aqua","bold": true},{"text":"你只能在存在生命计数的小游戏中食用生命果!","color":"aqua"}]
-execute if score $state mem matches 5 unless score @s mini_heart matches 1.. run give @s golden_apple
+execute if score $state mem matches 5 unless score @s mini_heart matches 1.. run give @s minecraft:golden_apple{display:{Name:'{"text":"生命果","italic":0}',Lore:['{"text":"小游戏中生命值 +1","italic":0,"color":"gray"}']},bonus_new:0b,bonus_return:1b,is_bonus:1b,item_name:'{"text":"生命果","color":"white"}'}
 
 
 # 检测小游戏是否去除特殊效果
 # 检测小游戏是否去除特殊效果
 execute if score $state mem matches 5 if score $mini_type mem matches 5 run scoreboard players set $t_remove_resistance mem 1 
 execute if score $state mem matches 5 if score $mini_type mem matches 5 run scoreboard players set $t_remove_resistance mem 1