CaptureSpell - TheComputerGeek2/MagicSpells GitHub Wiki
spell-class: ".targeted.CaptureSpell"
targeting
cast argument values:
Value | Supported |
---|---|
entity |
true |
location |
false |
entity_from_location |
false |
Description:
A targeted spell that allows the caster to capture a mob and a Mob Egg is dropped in its place
Configuration:
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 |
Additional Placeholders:
item-name
&item-lore
:%name%
: Returns target's Entity Name.
Example:
capture:
spell-class: ".targeted.CaptureSpell"
range: 100
item-name: "&6Mob Egg"
can-target: animals
add-to-inventory: true