world

This page will go over the World API namespace.

getDimensionName(): String

Returns the dimension name.

getDimensionId(): Number

Returns the dimension ID.

getDimensionTime(): Number

Returns the dimension time.

getTargetEntity(range): EntityLiving

ArgumentTypeDescription

range

Number

The maximum amount of range to get the entity from.

Returns the closest targetable entity in a certain range.

getEntities(): Entity[]

Returns all of the loaded/visible entities.

removeEntity(entityID): Undefined

Removes entity from the world.

removeEntity(entity): Undefined

Removes entity from the world.

newBlockPos(x,y,z): BlockPos

Creates a new block pos.

getBlockName(blockpos): String

Returns the block name.

Last updated