Compatibility
Minecraft: Java Edition
Platforms
Supported environments
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Creators
Details
✨ Spellbind
Bind spells to items you are using.
What Spellbind does
Spellbind is a Minecraft tweak util mod.
It allows you to make custom "spells" by following the steps below:
1️⃣ Make a datapack that contains a spellbind_spells
folder in it. All spells will be written in JSON format and be put here.
2️⃣ Specify an item ID. This item should be "usable": You are able to hold your right mouse button to use it. Foods or Bows for example.
Here we will use minecraft:apple
.
3️⃣ Specify your spell's attacking distance: how far (in blocks) can your spell reach.
It can be a float number, 10.0
for example.
4️⃣ Specify a mob entity ID, minecraft:pig
for example, or use #i_dont_care#
to let your spell to be effective to all types of mobs.
5️⃣ Specify some other criteria. Now Spellbind provides NBT criterion, let your spell only to be effective to those mobs which has the specific NBT tag.
If you do not need this, put #i_dont_care#
here.
6️⃣ Set a series of actions. Presently 4 types of actions are available:
a. applying potion effects,
b. executing commands,
c. modifying attributes,
d. manipulating NBT data.
7️⃣ Execute vanilla /reload
command.
After that, when you finish eating an apple, if you are looking at a mob, and it is within the range of a spell at the moment,
and it meets other criteria - now they are entity ID and NBT tag, then you will see those actions specified in Step 4 applied to that mob.
Spellbind wiki is under building!
With Spellbind, everything can be turned into a magic spell.
Use your imagination to create every kinds of magic prop you have dreamed about!
Spellbind mod has its example datapack in it. It contains two spells and is enabled by default.
They are:
- Consume an apple, if you are looking at a pig at the moment, and it's no more than 10 blocks away from you, with "NoAI" NBT tag,
you will give it Speed II potion effect for 100 seconds, send a title to all online players, give it a saddle, set it's max health to 200, and teleport it to x=~0, y=~8, z=~0 (Relative coordinates).
- Consume a sweet berry, if you are looking at a mob or player, and it's no more than 3 blocks away from you, regardless of what kind of mob it is and what NBT tag it has,
you will give it addtional 200 points of max health, then set its health to 100 point, and finally teleport it to x=~0, y=~20, z=~0 (Relative coordinates).
If you do not need them, simply disable Spellbind's datapack.
What can Spellbind do now
🎉 Criteria system
🎉 Action type 1: Applying potion effects
🎉 Action type 2: Executing commands
🎉 Action type 3: Modifying attributes
🎉 Action type 4: Manipulating NBT data.
Future Plans
More action types
More complex criteria
ZenScript or KubeJS support
This project is an open-source project under the MIT License.