Use events for that.

my.emask = ENABLE_ENTITY | ENABLE_BLOCK;
my.event = explode_function;