forked from nisovin/MagicSpells
-
Notifications
You must be signed in to change notification settings - Fork 68
HoldRightSpell
JasperLorelai edited this page May 19, 2024
·
7 revisions
spell-class: ".targeted.HoldRightSpell"
Value | Supported |
---|---|
entity |
true |
location |
true |
entity_from_location |
false |
The HoldRightSpell
allows for the caster to continuously cast a spell at an entity or block location while holding down right click, even despite targeting and line of sight.
Note: For reset-time
values under 500, targeting is not maintained and the spell
does not continuously cast.
Since 4.0 Beta 13 some of these options support dynamic values through numeric or string expressions.
Option | Description | Type | Default | Supports expressions |
---|---|---|---|---|
spell |
Sub-spell to cast when holding right click. This spell must implement TargetedEntitySpell or TargetedLocationSpell. | String | false |
|
target-entity |
Whether the spell should target an entity. |
Boolean | true |
true |
target-location |
Whether the spell should target a block location. |
Boolean | false |
true |
reset-time |
Time it takes in milliseconds for the caster to be able to target another entity or location with the spell after releasing right click. |
Integer | 250 |
true |
max-duration |
Maximum duration that the spell can target an entity or location in seconds. |
Float | 0 |
true |
max-distance |
Maximum distance the caster can be from the target while holding down right click for spell to cast. |
Float | 0 |
true |
Strikes targeted entity with lightning for up to 5 seconds while holding down right click as long as the caster remains within 10 blocks of the target.
HoldRightLightning:
spell-class: ".targeted.HoldRightSpell"
right-click-cast-item: golden_sword
spell: lightning
target-entity: true
target-location: false
reset-time: 1000
max-duration: 5
max-distance: 10