Skip to content

Repository files navigation

Creative Touch

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.

How it works

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 the GameType.isCreative() guard in startDestroyBlock and continueDestroyBlock. These are what give the instant local break and the destroyDelay = 5 (~5-tick) cooldown.
  • ServerPlayerGameModeMixin (server) — redirects the isCreative() guard in handleBlockBreakAction so a START_DESTROY_BLOCK from 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 downstream destroyBlock still runs the survival branch → loot drops + tool durability.

Vanilla reach and block-protection checks are left completely untouched.

The enchantment itself

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.

Getting it in-game

  • 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_touch while holding a mining tool, or grab the enchanted book from the creative inventory search.

Building

./gradlew build

Requires JDK 21. Output: build/libs/creativetouch-<version>.jar. Depends only on NeoForge.

Compatibility

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).

Regenerating art

python tools/generate.py

Writes the in-jar icon and the project icon/logo/banner (Pillow only).

License

MIT © falling_colud

About

Creative Touch — a treasure enchantment that lets mining tools break blocks the way Creative mode does (NeoForge 1.21.1).

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages