Learn R Programming

miner (version 0.2.2)

spawnEntity: Spawn an entity

Description

Spawn an entity of a given type at a given position.

Usage

spawnEntity(x, y, z, typeid)

Arguments

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 [etEntityTypes()] or use find_entity()` to search.

Value

A number giving the spawned entity's ID.

See Also

getEntityTypes(), find_entity()

Examples

Run this code
# 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