Preserve the selected Workstaff mining mode across tier upgrades #3

Merged
brz-master merged 3 commits from codex/preserve-workstaff-mining-mode into main 2026-11-25 13:08:01 +00:00
brz-master commented 2026-11-25 11:44:19 +00:00 (Migrated from github.com)

What changed

The Fusion Shrine used to replace Silk Touch or Resonance with the recipe's Fortune when upgrading a Spectral Workstaff. Upgrades between Spectral tiers now carry an unambiguous selection over the built-in Fortune default. Switching back restores the higher stored or recipe Fortune level. Foundry stays suspended while Silk Touch is active.

Custom recipes keep their explicit enchantments when they conflict with the input mode. If the input and output share an alternate mode, the higher enchantment level wins.

Verification

  • The Workstaff GameTest upgrades Trichromatic to Umbral in both modes, checks Foundry and switches the upgraded staff back to the new tier's Fortune.
  • The test covers a custom recipe with a higher level, a custom recipe with a different mode, a recipe where Pest Control conflicts with Resonance, and an input with both alternate modes active.
  • All 77 GameTests passed with Minecraft 1.21.1, NeoForge 21.1.265 and Spectrum 1.12.9.
## What changed The Fusion Shrine used to replace Silk Touch or Resonance with the recipe's Fortune when upgrading a Spectral Workstaff. Upgrades between Spectral tiers now carry an unambiguous selection over the built-in Fortune default. Switching back restores the higher stored or recipe Fortune level. Foundry stays suspended while Silk Touch is active. Custom recipes keep their explicit enchantments when they conflict with the input mode. If the input and output share an alternate mode, the higher enchantment level wins. ## Verification - The Workstaff GameTest upgrades Trichromatic to Umbral in both modes, checks Foundry and switches the upgraded staff back to the new tier's Fortune. - The test covers a custom recipe with a higher level, a custom recipe with a different mode, a recipe where Pest Control conflicts with Resonance, and an input with both alternate modes active. - All 77 GameTests passed with Minecraft 1.21.1, NeoForge 21.1.265 and Spectrum 1.12.9.
Sign in to join this conversation.
No description provided.