From 5c70e37d67de5abdba844a1edb83f33dbd91aabc Mon Sep 17 00:00:00 2001 From: Franco227 <227franco@gmail.com> Date: Wed, 3 Jul 2024 02:31:54 +0200 Subject: [PATCH] fix: ability items are not unbreakable --- .../upgrades/make_ability.mcfunction | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Data_Pack/data/roguecraft/functions/upgrades/make_ability.mcfunction b/Data_Pack/data/roguecraft/functions/upgrades/make_ability.mcfunction index 10e9971..7e48a37 100644 --- a/Data_Pack/data/roguecraft/functions/upgrades/make_ability.mcfunction +++ b/Data_Pack/data/roguecraft/functions/upgrades/make_ability.mcfunction @@ -1,10 +1,10 @@ -$execute as @s[scores={ability_$(number)=0}] run return run item replace entity @s container.$(slot) with minecraft:warped_fungus_on_a_stick{display:{Name:'[{"translate":"roguecraft.ability.name.ability_explosion"}]'},Enchantments:[{}],CustomModelData:$(model)} -$execute as @s[scores={ability_$(number)=1}] run return run item replace entity @s container.$(slot) with minecraft:warped_fungus_on_a_stick{display:{Name:'[{"translate":"roguecraft.ability.name.ability_heal"}]'},Enchantments:[{}],CustomModelData:$(model)} -$execute as @s[scores={ability_$(number)=2}] run return run item replace entity @s container.$(slot) with minecraft:warped_fungus_on_a_stick{display:{Name:'[{"translate":"roguecraft.ability.name.ability_mining"}]'},Enchantments:[{}],CustomModelData:$(model)} -$execute as @s[scores={ability_$(number)=3}] run return run item replace entity @s container.$(slot) with minecraft:warped_fungus_on_a_stick{display:{Name:'[{"translate":"roguecraft.ability.name.ability_damage_sphere"}]'},Enchantments:[{}],CustomModelData:$(model)} -$execute as @s[scores={ability_$(number)=4}] run return run item replace entity @s container.$(slot) with minecraft:warped_fungus_on_a_stick{display:{Name:'[{"translate":"roguecraft.ability.name.ability_arrow_wave"}]'},Enchantments:[{}],CustomModelData:$(model)} -$execute as @s[scores={ability_$(number)=5}] run return run item replace entity @s container.$(slot) with minecraft:warped_fungus_on_a_stick{display:{Name:'[{"translate":"roguecraft.ability.name.ability_spikes"}]'},Enchantments:[{}],CustomModelData:$(model)} -$execute as @s[scores={ability_$(number)=6}] run return run item replace entity @s container.$(slot) with minecraft:warped_fungus_on_a_stick{display:{Name:'[{"translate":"roguecraft.ability.name.ability_fireball"}]'},Enchantments:[{}],CustomModelData:$(model)} -$execute as @s[scores={ability_$(number)=7}] run return run item replace entity @s container.$(slot) with minecraft:warped_fungus_on_a_stick{display:{Name:'[{"translate":"roguecraft.ability.name.ability_levitate"}]'},Enchantments:[{}],CustomModelData:$(model)} -$execute as @s[scores={ability_$(number)=8}] run return run item replace entity @s container.$(slot) with minecraft:warped_fungus_on_a_stick{display:{Name:'[{"translate":"roguecraft.ability.name.ability_liquid_walker"}]'},Enchantments:[{}],CustomModelData:$(model)} -$execute as @s[scores={ability_$(number)=11}] run return run item replace entity @s container.$(slot) with minecraft:warped_fungus_on_a_stick{display:{Name:'[{"translate":"roguecraft.ability.name.ability_dirt_walker"}]'},Enchantments:[{}],CustomModelData:$(model)} \ No newline at end of file +$execute as @s[scores={ability_$(number)=0}] run return run item replace entity @s container.$(slot) with minecraft:warped_fungus_on_a_stick{display:{Name:'[{"translate":"roguecraft.ability.name.ability_explosion"}]'},Enchantments:[{}],CustomModelData:$(model),Unbreakable:true} +$execute as @s[scores={ability_$(number)=1}] run return run item replace entity @s container.$(slot) with minecraft:warped_fungus_on_a_stick{display:{Name:'[{"translate":"roguecraft.ability.name.ability_heal"}]'},Enchantments:[{}],CustomModelData:$(model),Unbreakable:true} +$execute as @s[scores={ability_$(number)=2}] run return run item replace entity @s container.$(slot) with minecraft:warped_fungus_on_a_stick{display:{Name:'[{"translate":"roguecraft.ability.name.ability_mining"}]'},Enchantments:[{}],CustomModelData:$(model),Unbreakable:true} +$execute as @s[scores={ability_$(number)=3}] run return run item replace entity @s container.$(slot) with minecraft:warped_fungus_on_a_stick{display:{Name:'[{"translate":"roguecraft.ability.name.ability_damage_sphere"}]'},Enchantments:[{}],CustomModelData:$(model),Unbreakable:true} +$execute as @s[scores={ability_$(number)=4}] run return run item replace entity @s container.$(slot) with minecraft:warped_fungus_on_a_stick{display:{Name:'[{"translate":"roguecraft.ability.name.ability_arrow_wave"}]'},Enchantments:[{}],CustomModelData:$(model),Unbreakable:true} +$execute as @s[scores={ability_$(number)=5}] run return run item replace entity @s container.$(slot) with minecraft:warped_fungus_on_a_stick{display:{Name:'[{"translate":"roguecraft.ability.name.ability_spikes"}]'},Enchantments:[{}],CustomModelData:$(model),Unbreakable:true} +$execute as @s[scores={ability_$(number)=6}] run return run item replace entity @s container.$(slot) with minecraft:warped_fungus_on_a_stick{display:{Name:'[{"translate":"roguecraft.ability.name.ability_fireball"}]'},Enchantments:[{}],CustomModelData:$(model),Unbreakable:true} +$execute as @s[scores={ability_$(number)=7}] run return run item replace entity @s container.$(slot) with minecraft:warped_fungus_on_a_stick{display:{Name:'[{"translate":"roguecraft.ability.name.ability_levitate"}]'},Enchantments:[{}],CustomModelData:$(model),Unbreakable:true} +$execute as @s[scores={ability_$(number)=8}] run return run item replace entity @s container.$(slot) with minecraft:warped_fungus_on_a_stick{display:{Name:'[{"translate":"roguecraft.ability.name.ability_liquid_walker"}]'},Enchantments:[{}],CustomModelData:$(model),Unbreakable:true} +$execute as @s[scores={ability_$(number)=11}] run return run item replace entity @s container.$(slot) with minecraft:warped_fungus_on_a_stick{display:{Name:'[{"translate":"roguecraft.ability.name.ability_dirt_walker"}]'},Enchantments:[{}],CustomModelData:$(model),Unbreakable:true} \ No newline at end of file