Skip to content

Conversation

@runcows
Copy link
Contributor

@runcows runcows commented Oct 10, 2025

Gold tools had the wrong max damage (33 instead of 32) causing an off by 1 error

Both Audere Shamir and Moneo Shamir set a max durability custom data on tools, this redundancy has been eliminated, favoring just the function from Moneo Shamir.
However, there is potentially an open question of if we should move this function into the gm4_metallurgy namespace, since it's common functionality. That has not been done here yet, but can be.

Copy link
Member

@misode misode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, should probably merge this before #1164

data modify storage gm4_audere_shamir:temp/player/tool SelectedItem set from entity @s SelectedItem
execute store result score $tool_current_damage gm4_ml_data run data get storage gm4_audere_shamir:temp/player/tool SelectedItem.components."minecraft:damage"
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
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seemed like this was not a backwards compatible change, but I realize that moneo is always installed, and thus the MaxDurability tag should be present on all tools. (I think?)

The comment in moneo's store_maximum function could probably make it clear that it runs for all shamirs.

Related, I think right now infinitas' make_unstackable runs for every shamir, not only for infinitas, which maybe isn't a problem, but still weird.

@Bloo-dev Bloo-dev merged commit f448a5e into Gamemode4Dev:master Oct 21, 2025
6 of 8 checks passed
runcows added a commit to runcows/GM4_Datapacks that referenced this pull request Oct 26, 2025
@runcows runcows deleted the metallurgy-max-damage branch October 26, 2025 12:06
runcows added a commit to runcows/GM4_Datapacks that referenced this pull request Oct 31, 2025
misode pushed a commit that referenced this pull request Nov 3, 2025
* Remove deprecated `CanDuplicate` nbt from Gemini Shamir breed allay
- This data field was removed in 1.21.5

* Add copper torch to Crossbow Cartridges

* Metallurgy Copper Tools (not RP)

* Replace `#gm4:boots` with `#minecraft:foot_armor`

* Update `shamir_model_template.py` with copper

* Adjust gold max damage + remove redundancy (#1167)

* Update overlays with gold arborenda PR changes

* Swap most overlays to `backport_81`
- Disassemblers was left as `since_88` as the contents are generated
- Standard Crafting was left as `since_88` because inverting it is not easy without errors in prior versions

* More resource pack stuff?

* Update `modeldata_registry` with copper

Metallurgy Expansions - Update `modeldata_registry` with copper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants