Mine like Creative — in survival · Minecraft 1.21.1 · NeoForge · MIT
Creative Touch is a treasure enchantment for mining tools. A tool that carries it breaks blocks the way Creative mode does: instantly, with the same short cooldown between blocks as you sweep along — no charge-up, no mining animation, regardless of the block's hardness.
It changes only the speed and feel of breaking. Blocks still drop their loot (Silk Touch, Fortune and the correct-tool rules all apply) and the tool still loses durability — so it's a survival power tool, not a Creative cheat. Think of it as the mining sibling of Silk Touch.
Vanilla already contains the instant-break-with-cooldown behaviour; it's gated behind an
isCreative() check in three places. Creative Touch widens exactly those gates (and nothing else) when
the player holds an enchanted tool, so the cadence is identical to Creative by construction.
Two Mixins:
MultiPlayerGameModeMixin(client) — redirects theGameType.isCreative()guard instartDestroyBlockandcontinueDestroyBlock. These are what give the instant local break and thedestroyDelay = 5(~5-tick) cooldown.ServerPlayerGameModeMixin(server) — redirects theisCreative()guard inhandleBlockBreakActionso aSTART_DESTROY_BLOCKfrom an enchanted player is accepted as an instant destroy (destroyAndAck) instead of being rolled back into a ghost block. Because the player isn't actually Creative, the downstreamdestroyBlockstill runs the survival branch → loot drops + tool durability.
Vanilla reach and block-protection checks are left completely untouched.
Fully data-driven: data/creativetouch/enchantment/creative_touch.json,
max level 1, applies to #minecraft:enchantable/mining (pickaxe / shovel / axe / hoe). It's registered
as a treasure enchantment (added to the vanilla treasure, tradeable and on_random_loot
enchantment tags), so it appears on enchanted books from villager trades and loot, but not in the
enchanting table.
- Survival: trade with a librarian villager or find it in loot, then combine the book onto a tool at an anvil.
- Testing / creative:
/enchant @s creativetouch:creative_touchwhile holding a mining tool, or grab the enchanted book from the creative inventory search.
./gradlew build
Requires JDK 21. Output: build/libs/creativetouch-<version>.jar. Depends only on NeoForge.
Must be installed on both the client and the server (it changes server-side block breaking). Works
in singleplayer (integrated server) out of the box. No Sodium/Iris interaction — it doesn't render
anything. Built for Minecraft 1.21.1 on NeoForge (net.neoforged.moddev).
python tools/generate.py
Writes the in-jar icon and the project icon/logo/banner (Pillow only).
MIT © falling_colud