getChestType

getChestType

> Functions

Returns the type of the chest entity, as one of the constants CHEST_WOOD (1), CHEST_IRON (2) or CHEST_DIAMOND (3).

If entity is not given, the type of the current entity is returned. The function returns -1 if the entity exists but is not a chest, and null if no entity has that id.

Example:

Parameters
Return