Skip to content
ChronoKeeper edited this page Nov 23, 2019 · 17 revisions

SpawnEntitySpell

Description:

Targeted Spell. Spawns an entity at the targeted location.

Configuration Options:

Option Description Default Value
entity EntityData config section, learn more about EntityData -
holding Item in hand. air
helmet Helmet. air
chestplate Chestplate. air
leggings Leggings. air
boots Boots. air
holding-drop-chance Chance of dropping item in hand. 0
helmet-drop-chance Chance of dropping helmet. 0
chestplate-drop-chance Chance of dropping chestplate. 0
leggings-drop-chance Chance of dropping leggings. 0
boots-drop-chance Chance of dropping boots. 0
y-offset Modifies mob's spawn height location 0.1
duration Duration of the mob (in ticks). 0
fire-ticks Amount of fire ticks applied to the mob 0
target-interval Interval between targetting. -1
target-range Target range. 20
retarget-range Retarget range. 50
location Location where the mob should be spawned (focus, target, caster, random, casteroffset:y), random will spawn the mob in randomly in a radius (radius determined by spell power) target
nameplate-text Name above the mob ""
no-ai Should the mob spawn with no ai? false
gravity Should the mob use gravity? true
remove-ai Should the mob's ai be removed on spawn? false
remove-mob Removes some of the mob's mechanic when it dies (set it to true if you don't know what you're doing) true
use-caster-name Should the mob use caster's name? false
add-look-at-player-ai Should the mob look at players? false
allow-spawn-in-midair Can the mob spawn in midair? false
nameplate-formatting Allow nameplate formatting? false
attack-spell Name of the spell which is casted when the mob attacks. ""
attributes Attribute list for the mob. null
potion-effects Potion effect list for the mob null

Spell Example:

Summon-Wolf:
    spell-class: ".targeted.SpawnEntitySpell"
    name: Summon-Wolf
    cooldown: 60
    location: caster
    entity:
        entity: wolf
        tamed: true
        color: blue
Clone this wiki locally