Just did a small update on the API’s and samples. Please don’t edit the samples directly (make a copy instead) because steam will overwrite them during updates.
We added:
-
entity:get_health() -> (health:number,maxHealth:number) | nil:: returns the health and maximum health of the entity -
entity:isDead() -> boolean:: returns true if the entity is dead. This is not strictly the same as checking get_health() returning 0 for current health, as in the middle of an update an entity may temporarigly go to 0 health before gaining health due to some other effect. The entity only dies towards the end of an update when no more effects can occur that may bring the entity back from the brink of death. -
boundless.describeBlockValues(BlockValues) -> BlockValuesDescriptionwhich has following fields -
block-idfields:blockType,embeddedBlockType -
color indexfields:embeddedBlockColorIndex,blockColorIndex - and
grassHeight,dugup,gleambow,textureRotation,placeOnFace,rotation,powered,connections