Capture Spell - MomoPewpew/MagicSpells GitHub Wiki
spell-class: ".targeted.CaptureSpell"
Description:
A targeted spell that allows the caster to capture a mob and a Mob Egg is dropped in its place
Configuration:
| Option | Description | Default Value |
|---|---|---|
item-name |
The name of the spawned item. Use %name% to fill in the entity's name from the entity-names option in general.yml. | null |
item-lore |
The lore (tooltip) of the spawned item. Use %name% to fill in the entity's name from the entity-names option in general.yml. | null |
gravity |
Whether gravity should be enabled | true |
add-to-inventory |
Whether to add the egg to the caster's inventory rather than dropping it on the ground. | false |
power-affects-quantity |
Whether the Spell Power can affect the quantity of eggs dropped. | true |
Example:
capture:
spell-class: ".targeted.CaptureSpell"
range: 100
item-name: "&6Mob Egg"
can-target: animals
add-to-inventory: true