Installation & Configuration/Triggers
Triggers - Trigger your explosives when YOU want!
This is the structure of an trigger:
triggers: <trigger-type> args: - <an-argument-name>: <an-argument-value> - ... activation: <activation-type>
Available trigger types with arguments:
Trigger | Description | Arguments | Throwable/Placeable/Both |
---|---|---|---|
Time | Triggers after the given time is over | time(in ticks) | Both |
Onhit | Triggers when a throwable hits a block | Throwable | |
Detonator | Triggers when the detonator was used | Placeable | |
Shock | Triggers as soon as there are entities inside the given radius around the explosive | radiusX; radiusY; radiusZ (in blocks) | Placeable |
Redstone | Triggers if powered/not powered by Redstone | powered: true(triggers when powered)/false(triggers when not powered) | Placeable |
Available activation types:
Activation Type | Description | Throwable/Placeable |
---|---|---|
Onthrow | Activates when throwable is thrown | Throwable |
Onplace | Activates when placed | Placeable |
Oninteract | Activates when interacted | Placeable |
Examples:
# For a placeable triggers: redstone: args: - powered: true activation: onplace detonator: activation: oninteract # For a throwable triggers: onhit: activation: onthrow time: args: - time: 120 activation: onthrow
If you have any ideas of new trigger or activation types, feel free to open a ticket
Comments