Skip to content
JasperLorelai edited this page May 19, 2024 · 11 revisions

Source Code

spell-class: ".targeted.NovaSpell"
Value Supported
entity true
location true
entity_from_location false

Description:

Creates an expanding block nova, which casts spells on its path.

Configuration:

Since 4.0 Beta 13 some of these options support dynamic values through numeric or string expressions.

Option Description Type Default Supports expressions
type Block data String "water" true
relative-offset Relative offset applied at the start location. Vector "0,0,0" true
spell-on-end Spell to cast when all block waves disappear. (requires remove-previous-blocks set to false) String false
spell Sub-spell to cast at each block, when a new wave forms. String false
spell-on-wave-remove Sub-spell to cast when the previous wave is removed. (requires remove-previous-blocks set to true) String false
radius Radius of the nova. Integer 3 true
start-radius Start radius of the nova. Integer 0 true
height-per-tick Height per new wave. Integer 0 true
expand-interval Interval between forming a new wave. Integer 5 true
expanding-radius-change Defines how big should each wave be, in blocks. Integer 1 true
visible-range Visible range of the nova. Double 20 true
point-blank If set to true, the start location will be set to the caster's current location. Boolean true true
circle-shape If set to true, nova will form a circle, if set to false, a square. Boolean false true
remove-previous-blocks Whether it should remove the previous wave of blocks. Boolean true true

Example:

Fire-Nova:
    spell-class: ".targeted.NovaSpell"
    cast-item: bone
    cooldown: 10
    cost:
        - mana 15
    str-cost: 15 mana
    str-cast-self: "You summon an expanding ring of fire."
    str-cast-others: "%a summons an expanding ring of fire."
    permission-name: fire_nova
    type: fire
    radius: 5
    expand-interval: 5
    visible-range: 50
    point-blank: true
    circle-shape: true
    spell: AOE_FIRE_NOVA

AOE_FIRE_NOVA:
    spell-class: ".targeted.AreaEffectSpell"
    helper-spell: true
    permission-name: fire_nova
    horizontal-radius: 1
    vertical-radius: 1
    can-target: players,nonplayers
    point-blank: false
    fail-if-no-targets: false
    spell-source-in-center: true
    spells:
        - COMBUST_FIRE_NOVA

COMBUST_FIRE_NOVA:
    spell-class: ".targeted.CombustSpell"
    helper-spell: true
    permission-name: fire_nova
    fire-ticks: 100
    fire-tick-damage: 1
    prevent-immunity: true
    check-plugins: true
    can-target: players,nonplayers
Clone this wiki locally