1. Animals
  2. Abilities
  3. Conditions
  4. Tool/Weapon
  5. Weapon Mods
  6. Orb
  7. Equipped
  8. Food/Medicine
  9. Furniture/Construction
  10. Color/Pattern
  11. Items
  12. Attributes
  13. Creatures
  14. Blocks
  15. Props
  16. API Types
  17. API Functions

LT_block_morph

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.