Spawn Egg Entity (Expression) — Skript
Addon: Skript · Category: Expression · Since: 2.10
Syntax
[the] spawn egg entity of %itemstacks/itemtypes/slots%Description
Gets or sets the entity snapshot that the provided spawn eggs will spawn when used.
Examples
set {_item} to a zombie spawn eggbroadcast the spawn egg entity of {_item}spawn a pig at location(0,0,0):
set the max health of entity to 20
set the health of entity to 20
set {_snapshot} to the entity snapshot of entity
clear entity
set the spawn egg entity of {_item} to {_snapshot}
if the spawn egg entity of {_item} is {_snapshot}: # Minecraft 1.20.5+
set the spawn egg entity of {_item} to (random element out of all entities)
set the spawn egg entity of {_item} to a zombie