Skip to content

Commit

Permalink
fix: ability items are not unbreakable
Browse files Browse the repository at this point in the history
  • Loading branch information
Franco227 committed Jul 3, 2024
1 parent 6356556 commit 5c70e37
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -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)}
$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}

0 comments on commit 5c70e37

Please sign in to comment.