Skip to content
AkitoBurrito edited this page Jan 28, 2022 · 11 revisions

Bomb Spell

Source Code

Targeted spell. Spawns a block which disappears after a delay, casting a spell at its location.

Configuration Options:

Option Description Default Value
block Material of the block. stone
fuse Delay before the block disappears 100
interval Interval between playing effects 20
spell Internal name of the spell to cast after the block disappeas ""

Example:

Smoke-Bomb:
    spell-class: ".targeted.BombSpell"
    name: "Smoke Bomb"
    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
Clone this wiki locally