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:

TriggerDescriptionArgumentsThrowable/Placeable/Both
TimeTriggers after the given time is overtime(in ticks)Both
OnhitTriggers when a throwable hits a block---Throwable
DetonatorTriggers when the detonator was used---Placeable
ShockTriggers as soon as there are entities inside the given radius around the explosiveradiusX; radiusY; radiusZ (in blocks)Placeable
RedstoneTriggers if powered/not powered by Redstonepowered: true(triggers when powered)/false(triggers when not powered)Placeable

Available activation types:

Activation TypeDescriptionThrowable/Placeable
OnthrowActivates when throwable is thrownThrowable
OnplaceActivates when placedPlaceable
OninteractActivates when interactedPlaceable

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

Posts Quoted:
Reply
Clear All Quotes