File tree Expand file tree Collapse file tree 6 files changed +13
-51
lines changed
gm4_audere_shamir/function
gm4_metallurgy/tags/function
gm4_arborenda_shamir/function/player
gm4_moneo_shamir/function Expand file tree Collapse file tree 6 files changed +13
-51
lines changed Original file line number Diff line number Diff line change 44
55data modify storage gm4_audere_shamir:temp/player/tool SelectedItem set from entity @s SelectedItem
66execute store result score $tool_current_damage gm4_ml_data run data get storage gm4_audere_shamir:temp/player/tool SelectedItem . components . " minecraft:damage "
7- execute store result score $tool_max_damage gm4_ml_data run data get storage gm4_audere_shamir:temp/player/tool SelectedItem . components . " minecraft:custom_data " . gm4_audere_shamir.max_durability
7+ execute store result score $tool_max_damage gm4_ml_data run data get storage gm4_audere_shamir:temp/player/tool SelectedItem . components . " minecraft:custom_data " . MaxDurability
8+ # | MaxDamage is set by gm4_moneo_shamir:store_maximum
89
910# update newly upgraded netherite gear
1011execute if score $tool_max_damage gm4_ml_data matches 1561 if predicate gm4_audere_shamir:holding_netherite run function gm4_audere_shamir:update_netherite
@@ -15,7 +16,8 @@ execute if score $tool_max_damage gm4_ml_data matches 131 run function gm4_auder
1516execute if score $tool_max_damage gm4_ml_data matches 250 run function gm4_audere_shamir:tools/materials/iron
1617execute if score $tool_max_damage gm4_ml_data matches 1561 run function gm4_audere_shamir:tools/materials/diamond
1718execute if score $tool_max_damage gm4_ml_data matches 2031 run function gm4_audere_shamir:tools/materials/netherite
18- execute if score $tool_max_damage gm4_ml_data matches 33 run function gm4_audere_shamir:tools/materials/gold
19+ # | gold used to be listed as 33 max damage, this is kept for compatibility with old items
20+ execute if score $tool_max_damage gm4_ml_data matches 32 .. 33 run function gm4_audere_shamir:tools/materials/gold
1921execute if score $tool_max_damage gm4_ml_data matches 237 run function gm4_audere_shamir:tools/shears
2022
2123# reset storage and fake players
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 33# at @s
44# run from gm4_arborenda:player/chop
55
6- # get max damage for material type
6+ # get max damage - 1 for material type
77execute if score @s gm4_use_axe_net matches 1 .. run scoreboard players set $max_damage gm4_arb_data 2030
88execute if score @s gm4_use_axe_dia matches 1 .. run scoreboard players set $max_damage gm4_arb_data 1560
9- execute if score @s gm4_use_axe_gol matches 1 .. run scoreboard players set $max_damage gm4_arb_data 32
9+ execute if score @s gm4_use_axe_gol matches 1 .. run scoreboard players set $max_damage gm4_arb_data 31
1010execute if score @s gm4_use_axe_iro matches 1 .. run scoreboard players set $max_damage gm4_arb_data 249
1111execute if score @s gm4_use_axe_sto matches 1 .. run scoreboard players set $max_damage gm4_arb_data 130
1212execute if score @s gm4_use_axe_woo matches 1 .. run scoreboard players set $max_damage gm4_arb_data 58
Original file line number Diff line number Diff line change @@ -16,5 +16,6 @@ execute if score $tool_max_damage gm4_ml_data matches 131 run function gm4_moneo
1616execute if score $tool_max_damage gm4_ml_data matches 250 run function gm4_moneo_shamir:tools/materials/iron
1717execute if score $tool_max_damage gm4_ml_data matches 1561 run function gm4_moneo_shamir:tools/materials/diamond
1818execute if score $tool_max_damage gm4_ml_data matches 2031 run function gm4_moneo_shamir:tools/materials/netherite
19- execute if score $tool_max_damage gm4_ml_data matches 33 run function gm4_moneo_shamir:tools/materials/gold
19+ # | gold used to be listed as 33 max damage, this is kept for compatibility with old items
20+ execute if score $tool_max_damage gm4_ml_data matches 32 .. 33 run function gm4_moneo_shamir:tools/materials/gold
2021execute if score $tool_max_damage gm4_ml_data matches 237 run function gm4_moneo_shamir:tools/shears
Original file line number Diff line number Diff line change 11# run from #gm4_metallurgy:apply_band
22# @s = moneo tool item
33
4+ # used by Audere Shamir as well
45execute if items entity @s contents minecraft:wooden_shovel run data modify entity @s Item . components . " minecraft:custom_data " . MaxDurability set value 59
56execute if items entity @s contents minecraft:wooden_pickaxe run data modify entity @s Item . components . " minecraft:custom_data " . MaxDurability set value 59
67execute if items entity @s contents minecraft:wooden_hoe run data modify entity @s Item . components . " minecraft:custom_data " . MaxDurability set value 59
@@ -26,10 +27,10 @@ execute if items entity @s contents minecraft:netherite_pickaxe run data modify
2627execute if items entity @s contents minecraft:netherite_hoe run data modify entity @s Item . components . " minecraft:custom_data " . MaxDurability set value 2031
2728execute if items entity @s contents minecraft:netherite_axe run data modify entity @s Item . components . " minecraft:custom_data " . MaxDurability set value 2031
2829
29- execute if items entity @s contents minecraft:golden_shovel run data modify entity @s Item . components . " minecraft:custom_data " . MaxDurability set value 33
30- execute if items entity @s contents minecraft:golden_pickaxe run data modify entity @s Item . components . " minecraft:custom_data " . MaxDurability set value 33
31- execute if items entity @s contents minecraft:golden_hoe run data modify entity @s Item . components . " minecraft:custom_data " . MaxDurability set value 33
32- execute if items entity @s contents minecraft:golden_axe run data modify entity @s Item . components . " minecraft:custom_data " . MaxDurability set value 33
30+ execute if items entity @s contents minecraft:golden_shovel run data modify entity @s Item . components . " minecraft:custom_data " . MaxDurability set value 32
31+ execute if items entity @s contents minecraft:golden_pickaxe run data modify entity @s Item . components . " minecraft:custom_data " . MaxDurability set value 32
32+ execute if items entity @s contents minecraft:golden_hoe run data modify entity @s Item . components . " minecraft:custom_data " . MaxDurability set value 32
33+ execute if items entity @s contents minecraft:golden_axe run data modify entity @s Item . components . " minecraft:custom_data " . MaxDurability set value 32
3334
3435execute if items entity @s contents minecraft:shears run data modify entity @s Item . components . " minecraft:custom_data " . MaxDurability set value 237
3536
You can’t perform that action at this time.
0 commit comments