Pre Creature Spawn (Event) — SkBee

Addon: SkBee · Category: Event · Since: 2.16.0

Syntax

[on] pre [creature] spawn[ing] [of %entity types%]

Description

Called before an entity is spawned into the world. Note: The spawning entity does not exist when this event is called only the entitytype exists. This event is called very frequently, and can cause server lag, use it sparingly.

Event Values

  • event-entitydata
  • event-location
  • event-minecraft entity type
  • event-spawn reason

Examples

on pre spawn of a pig:
	broadcast "a %event-entitytype% is spawning in"

View source