BombSpell - TheComputerGeek2/MagicSpells GitHub Wiki
spell-class: ".targeted.BombSpell"
targeting
cast argument values:
Value | Supported |
---|---|
entity |
false |
location |
true |
entity_from_location |
false |
Spell Effect Positions:
delayed
- Plays the effect at the bomb's location when the bomb spell ends.special
- Plays the effect at the bomb's location every tick before the bomb ends.
Description:
Spawns a block which disappears after a delay, casting a spell at its location.
Configuration:
Since 4.0 Beta 13 some of these options support dynamic values through numeric or string expressions.
Option | Description | Type | Default | Supports expressions |
---|---|---|---|---|
block |
Material of the block. | String | "stone" |
true |
fuse |
Delay before the block disappears. | Integer | 100 |
true |
interval |
Interval between playing effects. | Integer | 20 |
true |
spell |
Sub-spell to cast after the block disappears. | String | false |
Example:
Smoke-Bomb:
spell-class: ".targeted.BombSpell"
cast-item: bone
permission-name: smoke_bomb
block: cyan_terracotta
fuse: 60
interval: 5
spell: MULTI_SMOKE_BOMB
effects:
eff1:
position: special
effect: particles
height-offset: 0.5
particle-name: SMOKE_NORMAL
horiz-spread: 0.5
vert-spread: 0.5
speed: 0.04
count: 25
eff2:
position: delayed
effect: particles
height-offset: 1
particle-name: redstone
horiz-spread: 1
vert-spread: 1
color: FF0000
speed: 0.04
count: 50
MULTI_SMOKE_BOMB:
spell-class: ".TargetedMultiSpell"
helper-spell: true
permission-name: smoke_bomb
require-entity-target: false
stop-on-fail: false
spells:
- EFF_SMOKE_BOMB
- DELAY 2
- EFF_SMOKE_BOMB
- DELAY 2
- EFF_SMOKE_BOMB
- DELAY 2
- EFF_SMOKE_BOMB
- DELAY 2
- EFF_SMOKE_BOMB
- DELAY 2
- EFF_SMOKE_BOMB
- DELAY 2
- EFF_SMOKE_BOMB
- DELAY 2
- EFF_SMOKE_BOMB
- DELAY 2
- EFF_SMOKE_BOMB
- DELAY 2
- EFF_SMOKE_BOMB
- DELAY 2
- EFF_SMOKE_BOMB
EFF_SMOKE_BOMB:
spell-class: ".targeted.DummySpell"
helper-spell: true
permission-name: smoke_bomb
effects:
eff1:
position: target
effect: particles
height-offset: 2
particle-name: REDSTONE
horiz-spread: 2
vert-spread: 2
color: 000000
speed: 0.04
count: 75