MagnetSpell - TheComputerGeek2/MagicSpells GitHub Wiki
spell-class: ".instant.MagnetSpell"
targeting
cast argument values:
Value | Supported |
---|---|
entity |
false |
location |
true |
entity_from_location |
false |
Spell Effect Positions:
projectile
- Plays the effect at the item's position.
Description:
A spell that pulls nearby items to you.
Configuration:
Since 4.0 Beta 13 these options support dynamic values through numeric or string expressions.
Option | Description | Type | Default |
---|---|---|---|
radius |
Radius of the magnet spell. | Double | 5 |
power-affects-radius |
Since 4.0 Beta 13. | Boolean | true |
velocity |
The velocity the items are being pulled at. | Double | 1 |
power-affects-velocity |
Since 4.0 Beta 13. | Boolean | true |
resolve-velocity-per-item |
Since 4.0 Beta 13. Defines expression evaluation behaviour. | Boolean | true |
teleport-items |
Whether to teleport the items to you or not (ignores velocity). | Boolean | false |
force-pickup |
Whether to force the pickup of the items or not. | Boolean | false |
remove-item-gravity |
Whether to remove gravity from items or not. | Boolean | false |
remove-item-friction |
Since 4.0 Beta 13. Removes friction experienced with the air and ground. | Boolean | 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