Trigger Parameters

What item must the player be holding for this structure to work?

What type of monster or MythicMob must step on the Pressure Plate?

The following triggers (and sneak counterparts) will take in Item Filters as parameters:

  • Interact - What item must the player be holding when interacting?

  • Punch - What item must the player be holding when punching?

  • Pressure Plate (Players) - What item must the player be holding when standing on the pressure plate?

  • Pressure Plate (Items) - What item must be dropped on the pressure plate?


The following triggers will take in Entity Filters as parameters:

  • Pressure Plate (Monsters) - What mob type steps on the pressure plate?

  • Pressure Plate (Animals) - What mob type steps on the pressure plate?


The following triggers (and sneak counterparts) dont support parameters parameters:

  • Complete - No parameters supported.

  • Break - No parameters supported.

A structure with an excessive example of triggers with parameters

plugins/Gunging_Ootilities_Plugin/custom-structures/whatever.yml:Structure_Name_Goes_Here: Triggers: - INTERACT - PUNCH - BREAK - COMPLETE - PRESSUREPLATE_PLAYERS - PRESSUREPLATE_ITEMS - PRESSUREPLATE_MONSTERS - PRESSUREPLATE_ANIMALS INTERACT: - m SWORD CUTLASS - m SWORD FALCHION # Will activate only when the player holds ANY of these MMOItem swords. - m SWORD FLAMBERGE PUNCH: - v diamond 0 # Will activate if the player punches it with a Vanilla diamond - m MATERIAL STEEL_INGOT # OR a MMOItem steel ingot PRESSUREPLATE_PLAYERS: - v diamond_boots 0 # Will activate when the player steps on the pressure plate while holding - e frost_walker 2 # in their MAINHAND either Vanilla diamond boots OR anything enchanted with - e protection 4 # Frost Walker II OR anything enchanted with Protection IV PRESSUREPLATE_ITEMS: - v diamond_axe 0 # Will activate when a Vanilla diamond axe is dropped on the pressure plate - m CONSUMABLE MANGO # OR a MMOItem mango is dropped on the pressure plate PRESSUREPLATE_MONSTERS: - v skeleton - v spider # Will activate if either a Vanilla Skeleton or a Spider step on the pressure plate - m Skeleton_King # OR if a MythicMob Skeleton_King OR Angry_Sludge stand on the plate. - m Angry_Sludge PRESSUREPLATE_ANIMALS: - v zombie # Will not do anything because a Vanilla zombie is not an animal

These are to modify a structure's trigger parameters in-game:

/goop customstructures edit triggers parameter list <structure name> <trigger name>

Lists the trigger parameters specified for the target trigger of the target structure.


/goop customstructures edit triggers parameter remove <structure name> <trigger name> <parameter index>

Removes one of the parameters for a trigger of the target structure.


/goop customstructures edit triggers parameter edit <structure name> <trigger name> <parameter index> <parameter args>

Edits one of the parameters for a trigger of the target structure.


/goop customstructures edit triggers parameter add <structure name> <trigger name> <parameter args>

Adds a trigger parameter for a trigger of the target structure.

Args Breakdown (What everything does)

<Structure Name>

The structure you want to modify. It must be loaded, and have at least one trigger.

<Trigger Name>

The trigger you want to add parameters to. The trigger must be registered for the structure.

<Parameter Index>

The index of the parameter you want to remove or edit.

<Parameter Args>

The actual filter you want to add. Item Filters are always 3 words long, Entity Filters are always 2 words long.

Tips

When modifying parameters with the command:

  • You cant add parameters if the trigger you want to add them to is not part of the structure. You must add the trigger first with /goop customstructures edit triggers add


  • To easily check the index of a parameter, use /goop customstructures edit triggers parameter list


  • Some triggers only accept Item Filters as parameters, the others only accept Entity Filters.

    • The Tab Completer will always suggest the correct parameter types.

    • The command to add/edit will fail if the parameter you are trying to add makes no sense.