powered by
Spawn an entity of a given type at a given position.
spawnEntity(x, y, z, typeid)
east/west position (east is positive)
up/down position (up is positive)
north/south position (south is positive)
Integer giving the type of entity. See the output of [etEntityTypes()] or use find_entity()` to search.
[etEntityTypes()] or use
A number giving the spawned entity's ID.
getEntityTypes(), find_entity()
getEntityTypes()
find_entity()
# NOT RUN { mc_connect() witch_typeid <- find_entity("witch")$id witch_id <- spawnEntity(0, 20, 0, witch_typeid) getPlayerName(witch_id) # } # NOT RUN { # }
Run the code above in your browser using DataLab