Skip to content

Implement GT's enchantments - #5249

Open
screret wants to merge 33 commits into
GregTechCEu:1.21from
screret:sc/hard-hammer-enchant
Open

Implement GT's enchantments#5249
screret wants to merge 33 commits into
GregTechCEu:1.21from
screret:sc/hard-hammer-enchant

Conversation

@screret

@screret screret commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

What

Implements CEu 1.12's enchantments, Hard Hammer and Disjunction.

TODO add the translation strings (maybe)- I'm not sure if I added those or not

Implementation Details

This PR's code is based on #4494's branch, so that should be merged first.

AI Usage

  • No AI driven tools were used for this pull request.

Outcome

no more "TODO hard hammer enchantment"
also disjunction exists too

How Was This Tested

mined some ore with an enchanted pickaxe. it dropped crushed ore like it should. Also did the same with an actual hammer.
Also punted some endermen with a sword enchanted with Disjunction and checked that they got the correct potion effect(s).

Additional Information

TODO put some screenshots here

Potential Compatibility Issues

  • CustomTags.IRON_GOLEMS was renamed to CONSTRUCTS to add a bit of leeway in what can go into the tag
  • CustomTags.SPIDERS was removed entirely in favor of EntityTypeTags.ARTHROPOD
  • Some internal functions' arguments changed. IMO they don't need to be noted down anywhere because people shouldn't call them themselves anyway.

…ts instead of hardcoding the enchantment to check
…checks

# Conflicts:
#	src/main/java/com/gregtechceu/gtceu/api/item/tool/ToolHelper.java
#	src/main/java/com/gregtechceu/gtceu/common/item/tool/ToolEventHandlers.java
#	src/main/java/com/gregtechceu/gtceu/common/machine/trait/miner/LargeMinerLogic.java
#	src/main/java/com/gregtechceu/gtceu/data/DataGenerators.java
#	src/main/java/com/gregtechceu/gtceu/data/tags/EnchantmentTagsLoader.java
#	src/main/java/com/gregtechceu/gtceu/utils/DummyRecipeLogicMachine.java
#	src/main/resources/gtceu.mixins.json
# Conflicts:
#	src/main/java/com/gregtechceu/gtceu/api/item/tool/ToolHelper.java
#	src/main/java/com/gregtechceu/gtceu/common/machine/trait/miner/LargeMinerLogic.java
#	src/main/java/com/gregtechceu/gtceu/utils/DummyRecipeLogicMachine.java
#	src/main/resources/gtceu.mixins.json
…-for-tool-enchantment-checks

# Conflicts:
#	src/main/java/com/gregtechceu/gtceu/api/item/tool/ToolHelper.java
# Conflicts:
#	src/main/java/com/gregtechceu/gtceu/api/item/tool/ToolHelper.java
#	src/main/java/com/gregtechceu/gtceu/common/machine/trait/miner/LargeMinerLogic.java
…-for-tool-enchantment-checks

# Conflicts:
#	gradle/forge.versions.toml
# Conflicts:
#	src/main/java/com/gregtechceu/gtceu/api/item/tool/ToolHelper.java
#	src/main/java/com/gregtechceu/gtceu/data/DataGenerators.java
…` to match vanilla enchantment provider naming
…vestDrops` so the GLM is the only thing that'll use it
@screret
screret requested a review from a team as a code owner August 5, 2026 19:47
@github-actions github-actions Bot added the 1.21 label Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant