Skip to content

SpawnEntitySpell

MomoPewpew edited this page Dec 9, 2023 · 10 revisions

Source Code

spell-class: ".targeted.SpawnEntitySpell"

Description:

Targeted Spell. Spawns an entity at the targeted location.

Configuration Options:

Option Description Default Value
entity Entity Data config section. -
main-hand Item in the main hand. air
off-hand Item in off-hand. air
helmet Helmet. air
chestplate Chestplate. air
leggings Leggings. air
boots Boots. air
main-hand-drop-chance Chance of dropping an item in the main hand. 0
off-hand-drop-chance Chance of dropping an item in off-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 targeting. -1
target-range Target range. 20
retarget-range Retarget range. 50
target-priority-range If a valid target is found within this radius, attack the closest target instead of a random one. 10
target-priority-limit If a priority target was found, ignore them if they are already being targeted by at least this amount of mobs. 5
location Location where the mob should be spawned (focus, target, caster, random, casteroffset:y), random will spawn the mob 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 mechanics when it dies (set it to true if you don't know what you're doing) true
use-caster-name Should the mob use the 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
set-owner If the entity is tameable, the caster will be its owner. false
attack-spell Sub-spell which is casted when the mob attacks. ""
spell-on-spawn Sub-spell which is casted when the mob spawns. ""
spell-on-death Sub-spell which is casted when the mob dies. ""
interval-spell Sub-spell which is casted by the mob every once in a while. ""
spell-interval Interval in ticks for the interval-spell to be cast. 20
synchronise-interval-spells If true, all entities spawned by this spell will cast their interval-spell at the exact same time. false
attributes Attribute list for the mob. null
potion-effects Potion effect list for the mob null

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