跳到正文

Spellbind

Bind spells to items you are using.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

✨ 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:

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

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

常见问题

Spellbind 支持哪些 Minecraft 版本?

Spellbind 支持 Minecraft Java 版 1.16.5,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

Spellbind 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。

评论

登录后评论和评分

RisingInIris2017 的其他作品

查看全部 →