forked from nisovin/MagicSpells
-
Notifications
You must be signed in to change notification settings - Fork 69
WallSpell
JasperLorelai edited this page Jan 18, 2025
·
2 revisions
spell-class: ".instant.WallSpell"
Value | Supported |
---|---|
entity |
false |
location |
true |
entity_from_location |
false |
A spell used to create walls.
- Use general
range
options to control distance of the wall. - Since 4.0 Beta 13 some of these options support dynamic values through numeric or string expressions.
Option | Description | Type | Default | Supports Expressions |
---|---|---|---|---|
wall-types |
List of block types the wall is made of. | String List | false |
|
str-no-target |
Message sent to the caster when it's unable to create a wall. | Rich Text | "Unable to create a wall." |
true |
str-at-cap |
Since 4.0 Beta 13. Message sent to the caster when they have reached cap-per-entity . |
Rich Text | "You have too many effects at once." |
true |
spell-on-break |
Sub-spell which is casted at the broken wall block. | String | false |
|
y-offset |
Start height location | Integer | -1 |
true |
wall-width |
How many blocks wide? | Integer | 5 |
true |
power-affects-wall-width |
Since 4.0 Beta 13. | Boolean | true |
true |
wall-depth |
How thick the wall is. | Integer | 1 |
true |
wall-height |
Height of the wall. | Integer | 3 |
true |
power-affects-wall-height |
Since 4.0 Beta 13. | Boolean | true |
true |
wall-duration |
how many ticks the wall is activated for. | Integer | 15 |
true |
power-affects-wall-duration |
Since 4.0 Beta 13. | Boolean | true |
true |
cap-per-entity |
Since 4.0 Beta 13. If too many walls are placed, the spell fails with the message from str-at-cap . |
Integer | 1 |
false |
check-plugins |
Whether it should check world-related plugins. | Boolean | true |
true |
prevent-drops |
Whether it should prevent block drops from the wall. | Boolean | true |
true |
always-on-ground |
Whether the wall should always be spawned at the ground. | Boolean | false |
true |
prevent-breaking |
Whether the wall is unable to break. | Boolean | false |
true |
check-plugins-per-block |
Whether it should check world-related plugins. | Boolean | true |
true |
wall:
spell-class: ".instant.WallSpell"
description: Creates a temporary wall to block your enemies.
cast-item: stick
cooldown: 15
range: 3
wall-width: 5
wall-height: 3
wall-types:
- stone
- cobblestone
wall-duration: 100
cost:
- mana 12
- stone 2
str-cost: 12 mana and 2 stone
str-no-target: Unable to create a wall.