forked from nisovin/MagicSpells
-
Notifications
You must be signed in to change notification settings - Fork 68
Capture Spell
JasperLorelai edited this page May 19, 2024
·
9 revisions
spell-class: ".targeted.CaptureSpell"
Value | Supported |
---|---|
entity |
true |
location |
false |
entity_from_location |
false |
A targeted spell that allows the caster to capture a mob and a Mob Egg is dropped in its place
Since 4.0 Beta 13 these options support dynamic values through numeric or string expressions.
Option | Description | Type | Default |
---|---|---|---|
item-name |
The name of the spawned item. | Rich Text | |
item-lore |
The lore (tooltip) of the spawned item. | Rich Text List | |
gravity |
Whether gravity should be enabled | Boolean | true |
add-to-inventory |
Whether to add the egg to the caster's inventory rather than dropping it on the ground. | Boolean | false |
power-affects-quantity |
Whether the Spell Power can affect the quantity of eggs dropped. | Boolean | true |
-
item-name
&item-lore
:-
%name%
: Returns target's Entity Name.
-
capture:
spell-class: ".targeted.CaptureSpell"
range: 100
item-name: "&6Mob Egg"
can-target: animals
add-to-inventory: true