forked from nisovin/MagicSpells
-
Notifications
You must be signed in to change notification settings - Fork 69
MagnetSpell
JasperLorelai edited this page May 19, 2024
·
10 revisions
spell-class: ".instant.MagnetSpell"
Value | Supported |
---|---|
entity |
false |
location |
true |
entity_from_location |
false |
-
projectile
- Plays the effect at the item's position.
A spell that pulls nearby items to you.
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 |
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