Spawner Type (Expression) — Skript
Addon: Skript · Category: Expression · Since: 2.4, 2.9.2 (trial spawner), 2.12 (delete)
Syntax
[the] (spawner|entity|creature) type[s] of %blocks%Description
The entity type of a spawner (mob spawner). Change the entity type, reset it (pig) or clear it (Minecraft 1.20.0+).
Examples
on right click:
if event-block is a spawner:
send "Spawner's type if %spawner type of event-block%" to player
set the creature type of {_spawner} to a trader llamareset {_spawner}'s entity type # Pigclear the spawner type of {_spawner} # Minecraft 1.20.0+