FANDOM


The activated event is an event that is only used for custom blocks. The activated event is called into function when the block is powered by redstone. If you want it to do something when that power is cut off, make sure to check out the deactivated event as well. Here is an example of how to use the activated event:

activated="world.createExplosion(origin, 4);";

This event will cause an explosion with about the power of a creeper explosion. The activated event can use world functions and the origin variable.

Example Uses