Item Spray Effect - MomoPewpew/MagicSpells GitHub Wiki

Description: Spawns in a spray of items. The items cannot be picked up. They are removed after the defined duration.

Source Code

Configuration:

Option Description Variable Type Default Value
type A material to drop. String ""
amount Defines the number of items to drop. Integer 15
duration Defines the lifetime of the dropped items. Integer 10
force Defines the spread of the dropped items. Double 1

Example:

effects:
    eff1:
        position: projectile
        effect: itemspray
        type: diamond
        amount: 5
        duration: 100
        force: 1.5