Allow reverting mob head progression in the Purifier - #1260
Merged
Conversation
Filling the Purifier with blood and inserting a Wither Skeleton Skull, Creeper Head or Zombie Head now reverts it to the previous step of the Blood Infuser head progression. Closes #1258 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DwM8cKrtoseKe4UBtH6NLL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1258
Adds a way to reverse the Blood Infuser mob head progression, using the Purifier as suggested in the issue.
Behaviour
The Blood Infuser chain is
skeleton_skull→ (1000 mB) →zombie_head→ (5000 mB) →creeper_head→ (25000 mB) →wither_skeleton_skull. The Purifier now walks it back one step at a time:Implementation notes
The Purifier is not data-driven; it runs a Java registry of
IPurifierActionimplementations, so this is a newMobHeadDowngradePurifyActionrather than a recipe file. It is registered last, so an enchanted head plus a Blook still disenchants first.A tag-based input check was considered and rejected: 1.20.1 has no vanilla skull/head item tag, and while Forge provides
forge:heads, a tag only gives membership, not the mapping of which head reverts to which. It would also wrongly advertise dragon heads, player heads and skeleton skulls as valid Purifier inputs.Also adds an info book paragraph (
purifier.text4) documenting the new behaviour.Testing
./gradlew compileJavapasses.No tests here: this branch has no
src/test/java, and being 1.20.1 there is no gametest infrastructure either. Game tests covering this live in #1259 againstmaster-1.21-lts, ready for the upmerge. They were verified there against a temporary port of this implementation: all 81 game tests pass with it, andtestPurifierMobHeadDowngradefails without it.🤖 Generated with Claude Code
https://claude.ai/code/session_01DwM8cKrtoseKe4UBtH6NLL
Generated by Claude Code