forked from nisovin/MagicSpells
-
Notifications
You must be signed in to change notification settings - Fork 71
SpawnTntSpell
JasperLorelai edited this page May 19, 2024
·
10 revisions
spell-class: ".targeted.SpawnTntSpell"
Value | Supported |
---|---|
entity |
false |
location |
true |
entity_from_location |
false |
-
projectile
- Plays the effect at the TNT's position. -
casterprojectile
- Plays the effect from the caster towards the projectile's location. -
blockdestruction
- Plays the effect on every block destroyed by the TNT.
A targeted spell that spawns TNT at the target location.
Since 4.0 Beta 13 some of these options support dynamic values through numeric or string expressions.
Option | Description | Type | Default | Supports expressions |
---|---|---|---|---|
fuse |
Fuse time (in ticks). | Integer | 20 |
true |
velocity |
Velocity of the TNT. | Float | 0 |
true |
up-velocity |
Up velocity of the tnt. | Float | 0 |
true |
cancel-gravity |
Defines if the tnt should cancel gravity. | Boolean | false |
true |
cancel-explosion |
Defines if the tnt should cancel its explosion. | Boolean | false |
true |
prevent-block-damage |
Defines if block damage should be prevented. | Boolean | false |
true |
spell |
Sub-spell to cast at the TNT's explode location. | String | false |
tnt:
spell-class: ".targeted.SpawnTntSpell"
range: 20
fuse: 40
velocity: 0
prevent-block-damage: true