ConjureFireworkSpell - TheComputerGeek2/MagicSpells GitHub Wiki

Source Code

spell-class: ".instant.ConjureFireworkSpell"
Value Supported
entity false
location true
entity_from_location false
  • special - Plays the effect at the dropped item's location.

Description:

The spell conjures a firework formatted by the configuration.

Configuration:

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

Option Description Type Default Supports expressions
count Integer 1 true
flight Flight power, where each level is approximately half a second of flight time. Integer 2 true
pickup-delay If add-to-inventory is set to false, this will determine the pickup delay in server ticks. Integer 0 true
gravity Defines whether the dropped item should obey gravity. Boolean true true
add-to-inventory Defines if the firework should be dropped or spawned in the next free slot. Boolean true true
firework-name Formatted Text false
firework-effects String list of Firework effects applied to the firework. String List false

Firework effect:

Follows format <type> <trail> <twinkle> <colors>:

  • type is required, and may be: ball (or smallball), largeball, star, burst, creeper.
  • trail is optional, and to enable you just have to write trail.
  • twinkle is optional, and to enable you just have to write twinkle (or flicker).
  • colors is required, and in it, you may list one or multiple colors separated by a ,. The colors must be in hex, without #.

Some examples:

firework-effects:
    - ball c0ffee #no trail or twinkle, just a blue-ish ball
    - largeball trail ff0000,00ff00,0000ff #red, green, and blue large ball with trail
    - burst trail flicker 000000 #black burst with trail and flicker (twinkle)

Example:

fireworks:
    spell-class: ".instant.ConjureFireworkSpell"
    count: 10
    flight: 2
    gravity: true
    add-to-inventory: false
    pickup-delay: 200
    firework-name: "&2&lFireworks"
    firework-effects:
        - largeball FF0000,00FF00
⚠️ **GitHub.com Fallback** ⚠️