world
This page will go over the World API namespace.
getDimensionName(): String
getDimensionName(): StringReturns the dimension name.
getDimensionId(): Number
getDimensionId(): NumberReturns the dimension ID.
getDimensionTime(): Number
getDimensionTime(): NumberReturns the dimension time.
getTargetEntity(range): EntityLiving
getTargetEntity(range): EntityLivingArgument
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): UndefinedRemoves entity from the world.
removeEntity(entity): Undefined
removeEntity(entity): UndefinedRemoves entity from the world.
newBlockPos(x,y,z): BlockPos
newBlockPos(x,y,z): BlockPosCreates a new block pos.
getBlockName(blockpos): String
getBlockName(blockpos): StringReturns the block name.
Last updated