Spawn Mob
Action to spawn mobs.
Tags
variable -> The variable of the action to get custom placeholders or execute functions:
variable -> The variable of the action to get custom placeholders or execute functions:%<variable>.x% -> The x position of the mob.
%<variable>.y% -> The y position of the mob.
%<variable>.z% -> The z position of the mob.
%<variable>.world% -> The world where the mob is.
%<variable>.remove% -> Removes the mob.
%<variable>.setVelocity(0, 0, 0)% -> Sets the mob velocity.
%<variable>.moveTo(x, y, z, time)% -> Moves the mob using velocity to a location. The time is put in seconds. It will move the mob in that time.
%<variable>.tp(x, y, z)% -> Teleports the mob to that location.
%<variable>.setRotation(yaw, pitch)% -> Sets the mob facing rotation using yaw and pitch.
pos -> The position where the mob will spawn.
pos -> The position where the mob will spawn.mob -> The mob.
mob -> The mob.collidable -> Whether or not the mob will be collidable.
collidable -> Whether or not the mob will be collidable.invisible -> Whether or not the mob will be invisible.
invisible -> Whether or not the mob will be invisible.invulnerable -> Whether or not the mob will be invulnerable.
invulnerable -> Whether or not the mob will be invulnerable.invisible -> Whether or not the mob will be invisible.
invisible -> Whether or not the mob will be invisible.velocity -> The mob velocity. This is useful to propel the mob.
velocity -> The mob velocity. This is useful to propel the mob.ia -> Whether or not the mob will have ia.
ia -> Whether or not the mob will have ia.armorStandSmall -> Whether or not the armor stand will be small, just for armor stands.
armorStandSmall -> Whether or not the armor stand will be small, just for armor stands.slimeSize -> The slime size, just for slimes.
slimeSize -> The slime size, just for slimes.magmaSize -> The magma size, just for magma cubes.
magmaSize -> The magma size, just for magma cubes.fallingBlock -> The falling block material, such as STONE (just for falling blocks).
fallingBlock -> The falling block material, such as STONE (just for falling blocks).mobPassenger -> If the mob will have another mob as a passenger.
mobPassenger -> If the mob will have another mob as a passenger.passengerGravity -> Will the mob be affected by gravity?
passengerGravity -> Will the mob be affected by gravity?rotation -> The mob facing rotation.
rotation -> The mob facing rotation.invisible -> Whether or not the mob will be invisible.
invisible -> Whether or not the mob will be invisible.deleteAfter -> When the mob will be deleted in seconds after spawning.
deleteAfter -> When the mob will be deleted in seconds after spawning.Examples
spawnmob <mob>COW</mob> <variable>mymob</variable> <pos>%global.playerworld%,
%global.playerx%, %global.playery%, %global.playerz%</pos> <deleteAfter>5</deleteAfter>spawnmob <mob>ZOMBIE</mob> <variable>myzombie</variable> <pos>%global.playerworld%,
%global.playerx%, %global.playery%, %global.playerz%</pos> <invulnerable>true</invulnerable> <velocity>0, 2, 0</velocity> <deleteAfter>5</deleteAfter>Last updated
Was this helpful?