MagnetSpell - MomoPewpew/MagicSpells GitHub Wiki
spell-class: ".instant.MagnetSpell"
Description:
Instant spell. A spell that pulls nearby items to you.
Configuration Options:
| Option | Description | Default Value |
|---|---|---|
radius |
Radius of the magnet spell. | 5 |
velocity |
The velocity the items are being pulled at. | 1 |
teleport-items |
Whether to teleport the items to you or not (ignores velocity). | false |
force-pickup |
Whether to force the pickup of the items or not. | false |
remove-item-gravity |
Whether to remove gravity from items or not. | false |
Example:
magnet:
spell-class: ".instant.MagnetSpell"
name: magnet
cooldown: 2
cast-item: stick
cost:
- mana 20
- coal 1
str-cost: "20 mana, 1 coal"
radius: 5
velocity: 1
teleport-items: false
force-pickup: false
remove-item-gravity: false