Description Usage Arguments Value Note See Also Examples
Spawn an entity of a given type at a given position.
1 | spawnEntity(x, y, z, typeid)
|
x |
east/west position (east is positive) |
y |
up/down position (up is positive) |
z |
north/south position (south is positive) |
typeid |
Integer giving the type of entity. See the
output of |
A number giving the spawned entity's ID.
Only works with RaspberryJuice version 1.11 or later.
getEntityTypes()
, find_entity()
1 2 3 4 5 6 7 | ## Not run:
mc_connect()
witch_typeid <- find_entity("witch")$id
witch_id <- spawnEntity(0, 20, 0, witch_typeid)
getPlayerName(witch_id)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.