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

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.