ModsJava
UltimateSpellSystem
A custom DSL for nice spells in your world.
⬇ Download on HangarOpen in MCModsHubGet it on Google Play →
# What is this plugin ?
This plugin can allow for players to cast registered spell bound to items, with a one-time usage in mind.
Spells are created using a custom [DSL](https://en.wikipedia.org/wiki/Domain-specific_language).
The format is lightweight, and can be easily shared in a community.
# How can I use it ?
Simply follow those steps :
1. Download the lastest version here or on [github](https://github.com/jamailun/UltimateSpellSystem/releases/latest) and move to jar into your `plugins/` folder.
2. Put some spells in the `plugins/UltimateSpellSystem/spells` folder. You can find examples [here](https://github.com/jamailun/UltimateSpellSystem/tree/master/examples).
3. Type `/uss reload` to load those new spells. You can test them with `/uss cast `.
4. Now you can now bind a spell to an item (`/uss cast true`). You have just created an item bound to a spell.
5. Distribute those items into your economy ! The spell ID is stored into the item NBT, so you'll be able to easily update the spell later on.
# Can you show me examples ?
Sure : [examples](https://github.com/jamailun/UltimateSpellSystem/tree/master/examples).
## What does the code looks like
The syntax looks like this. Check the [wiki](https://github.com/jamailun/UltimateSpellSystem/wiki/DSL-:-statements) for more information.
```bash
send to %caster message "You just casted a spell !";
# I'm a comment
define %enemies_around = sizeof(all monsters within 10 around %caster)
if(%enemies_around > 2) {
summon IRON_GOLEM for 4 seconds with: {{
name: "&eMichel",
health: 25 + 5 * %enemies_around
}}
}
```
### Ideas
Let's see what we could do with this ? We could...
- Throw fireballs to our enemies,
- Create a sphere around us, where undeads will burn and allies will become stronger,
- Root enemies around us as we move around,
- Summon zombies to target other zombies, or even chickens.
The imagination will be your limit !
### Screenshots
Those examples will not let you experience the beauty of the particle or the wonder of the sounds, but let our imagination animate the pictures.
#### Example 1: a "smite"
The caster will levitate and, after a will, all undeads around will be purified with the light.

[[Link to the code]](https://github.com/jamailun/UltimateSpellSystem/blob/master/examples/smite.uss)
#### Example 2 : a "root"
Root all monsters around the player, for a duration.

[[Link to the code]](https://github.com/jamailun/UltimateSpellSystem/blob/master/examples/root.uss)
UltimateSpellSystem is a free Minecraft Java mod. Compatible with Minecraft 1.21, 1.21.1, 1.21.2, 1.21.3 and newer. Downloaded 11 times (via Hangar). Download it and open it directly in the game.
Explore more