world
This page will go over the World API namespace.
getDimensionName(): String
getDimensionName(): String
Returns the dimension name.
getDimensionId(): Number
getDimensionId(): Number
Returns the dimension ID.
getDimensionTime(): Number
getDimensionTime(): Number
Returns the dimension time.
getTargetEntity(range): EntityLiving
getTargetEntity(range): EntityLiving
Argument
Type
Description
range
Number
The maximum amount of range to get the entity from.
Returns the closest targetable entity in a certain range.
getEntities(): Entity[]
getEntities(): Entity[]
Returns all of the loaded/visible entities.
removeEntity(entityID): Undefined
removeEntity(entityID): Undefined
Removes entity from the world.
removeEntity(entity): Undefined
removeEntity(entity): Undefined
Removes entity from the world.
newBlockPos(x,y,z): BlockPos
newBlockPos(x,y,z): BlockPos
Creates a new block pos.
getBlockName(blockpos): String
getBlockName(blockpos): String
Returns the block name.
Last updated