LT_block_morph
boolean LT_block_morph(blockpos location,number id)
blockpos | location | The location specifying the block to be changed |
number | id | 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.