
Adds a less-than-useless enchantment (curse) that replaces the use action with a twirl!
I'll try spinning! That's a good trick!
Any twirling-enchanted item can be used to visually spin around!
This prevents utilizing the usual use for an item, like drawing a bow or tilling soil.
Books can be enchanted with twirling at a crafting table using feathers, wind charges, or breeze rods.
Datapacking
Item-specific behaviour can be altered with these item tags:
#twirl:keep_use- allows the original item'suse()to run.#twirl:keep_tick- allows the original item'susageTick()to run.#twirl:keep_finish- allows the original item'sonStoppedUsing()to run.#twirl:keep_action- preserves the original item'sgetUseAction()result.#twirl:rotate_z- spin in the other sensible axes instead.
Afterword
All mods are built on the work of many others.
This mod was made for ModFest: Carnival!
We're open to suggestions for how to implement stuff better - if you see something wonky and have an idea - let us know.
How to Install Twirl! (Mod)
Twirl! by sleepingdragoninn is verified for Fabric across Minecraft versions 1.21 (latest release: 0.3.3+1.21, file size: 448 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.21) and platform (Fabric).
- Make sure you have the compatible loader or environment installed for Fabric.
- Move the downloaded Twirl! file into your Minecraft
.minecraft/modsfolder and launch the game.
- swap to @WrapMethod for safer matrix stacking
Changelog: https://github.com/sisby-folk/twirl/releases/tag/v0.3.3
- similarly cancel finishUsing, and appropriately rename
#twirl:keep_finishand#twirl:keep_stop
Changelog: https://github.com/sisby-folk/twirl/releases/tag/v0.3.2
- NPE due to an unconditional item render mixin over a nullable entity
Changelog: https://github.com/sisby-folk/twirl/releases/tag/v0.3.1
- Twirl offhand item if both are enchanted
Changelog: https://github.com/sisby-folk/twirl/releases/tag/v0.3.0
- metadata mod desc
- fix offhand twirling offsets
Changelog: https://github.com/sisby-folk/twirl/releases/tag/v0.2.3
- onStoppedUsing being called due to a bad mixin target
Changelog: https://github.com/sisby-folk/twirl/releases/tag/v0.2.1
- add item tags (
#twirl:keep_use,#twirl:keep_tick,#twirl:keep_finish,#twirl:keep_action) to specify when an item's original usage should be preserved. - add item tags (
#twirl:rotate_z) to swap the axis twirling occurs in.
Changelog: https://github.com/sisby-folk/twirl/releases/tag/v0.2.0
Craft a twirling enchanted book using feathers, wind charges, or breeze rods.
Use higher levels to spin faster. Pose changes randomly during use.
Changelog: https://github.com/sisby-folk/twirl/releases/tag/v0.1.0