The IBlockAction function can be added to a Block and, depending on where you added it, will be triggered when the block is placed or broken.

Importing the package

It might be required for you to import the package if you encounter any issues, so better be safe than sorry and add the import.
import mods.contenttweaker.IBlockAction;


The IBlockAction is a function with the following parameters:

The function doesn’t have a return value!


zsBlock.onBlockBreak = function(world, blockPos, blockState){
    print("I WAS PLACED!!!");