SPAWN_ENTITY
Spawns an entity, such as a pig, at a position.
The result is the UUID of the new entity. This needs allowSpawning or an administrator as owner, otherwise PERMISSION_DENIED is raised. An unknown type raises INVALID_ARGUMENT.
Parameters and results
positionSTRUCT c0de/minecraft/POSITION: where the entity appearstypeSTRING: the entity type, e.g. minecraft:pig- result
resultSTRING: the UUID of the entity
Example
c0de
CALL c0de/minecraft/SPAWN_ENTITY
PARAMETER position pen ;
PARAMETER type "minecraft:pig" ;
RESULT result pigId