BlockPos

This page goes over about the BlockPos object.

getPosition(): Vector3

Returns the position of the blockpos.

getHardness(): Number

Returns the hardness of the block at the blockpos, you can get the amount of ticks it will take to break the block by doing 1 / hardness.

getHardness(int slot): Number

Returns the hardness using the item in the slot id, read getHardness method description for more information.

getBlock(): Block

Returns the block at the position.

Last updated