User Tools

Site Tools


spawnmonsterspell

Spawn Monster Spell

Targeted spell. Spawns a monster at a certain semi-configurable location.

Configuration

Option Description Default
location Where the monster should spawn. Can be one of three values: “target” (spawns at the block the player is looking at), “caster” (spawns at the location of the caster), “random” (spawns in a random location within range of the caster). target
entity-type The entity type to spawn. wolf
allow-spawn-in-midair Whether mobs can spawn in midair. If this is false, it will only work if there is a ground space to spawn on. false
baby Whether to spawn the mob as a baby (assuming it can be a baby). false
tamed Whether the mob should be tamed (wolf or ocelot). false
holding The item the monster will be holding, for skeletons, zombies, and endermen. (nothing)
holding-drop-chance The chance the monster will drop their held item on death. 0.0
helmet
helmet-drop-chance
chestplate
chestplate-drop-chance
leggings
leggings-drop-chance
boots
boots-drop-chance
potion-effects A list of potion effects to apply to the monster on spawn, in the format ”<type> <duration> <strength>”.
duration How long until the monster disappears, in ticks. Set to 0 to last forever. 0
nameplate-text The text for the monster's nameplate. (none)
use-caster-name Puts the caster's name on the nameplate. false
remove-ai Attempts to remove the monster's AI when spawned. May not always work. false
attributes A list of attributes to apply to the monster. The attributes are in the format ”<type> <value> [operation]”, where operation is one of: add (default), multiply (percent), or addpercent. See example below.

Example

wolf:
    spell-class: ".targeted.SpawnMonsterSpell"
    name: wolf
    location: target
    entity-type: wolf
    tamed: true
    range: 10
    potion-effects:
      - 1 5000 0
    attributes:
      - "generic.maxHealth 10 add"
spawnmonsterspell.txt · Last modified: 2014/01/13 18:04 by nisovin