1. Animals
  2. Abilities
  3. Conditions
  4. Tool/Weapon
  5. Equipped
  6. Food/Medicine
  7. Items
  8. Attributes
  9. Creatures
  10. Blocks
  11. Props
  12. API Types
  13. API Functions


boolean LT_block_morph(blockpos location,number id)

blockposlocation The location specifying the block to be changed
numberid ID of block type to change to, or 0 to morph into empty air block

SERVER This has no effect if performed on the client (but will work in single player)

Changes a block in the world to a different one. If the block at the location given is already that of the ID desired, nothing will happen and this function will return false. If not, the block will morph into one of the type desired and its HP and parameter will reset. If the new block is to be a liquid block, it will start out with all 16 units of the liquid. This function returns true on a successful block morph. You can find a list of block IDs here.