projectile

A projectile in the game.

mobs.projectile(LIGHTNING_BOLT);

Parameters

  • name: the type of the projectile

Example

Trigger lightning near the player.

mobs.spawn(mobs.projectile(LIGHTNING_BOLT), pos(5, 0, 0))

See also

||mobs:spawn||