Once a structure is successfully activated, it will run a series of commands.
This supports PlaceholderAPI, but there are a few built-in placeholders ready for you to use. Drop down these menu to read them, they are plenty!
%player% The name of the player who activated the structure
%player_name% The name of the player who activated the structure
%player_uuid% The UUID of the player who activated the structure
%entity% The UUID of the entity that activated the structure
%entity_name% The name of the entity that activated the structure
%entity_uuid% The UUID of the entity that activated the structure
%structure-center% The co-ordinates of the core block of the structure in format "X Y Z"
%structure-center-comma% The co-ordinates of the core block of the structure in format "X,Y,Z"
%structure-blockcenter% The co-ordinates of the center of the core block of the structure in format "X Y Z"
%structure-blockcenter-comma% The co-ordinates of the center of the the core block of the structure in format "X,Y,Z"
%world% The world the core block of the structure is in.
%pos_x% The x coord of the core block of the structure is in.
%pos_y% The y coord of the core block of the structure is in.
%pos_z% The z coord of the core block of the structure is in.
%structure-forward% The yaw value that corresponds to aligning oneself with the facing of the structure
%structure-back% The yaw value that of aligning oneself to oppose the facing of the structure
%structure-left% The yaw value to face to the left of the structure
%structure-right% The yaw value to face to the right of the structure
%entity-forward% The yaw value that corresponds to aligning oneself with the facing of the activator.
%entity-back% The yaw value that of aligning oneself to oppose the facing of the activator.
%entity-left% The yaw value to face to the left of the activator
%entity-right% The yaw value to face to the right of the activator
/goop customstructures edit actions list <structure name>
Lists all the commands that will run when target structure is activated.
/goop customstructures edit actions remove <structure name> <index>
Removes one of the run commands from the target structure.
/goop customstructures add actions add <structure name> <action...>
Adds one action to the target structure. It will run when the structure is activated.
The name of the structure you want to modify. Must be loaded.
The index of the action you want to edit/modify.
Literally, the command that the structure will run. Supports placeholders.
You cannot use GooP Chained Commands when running these commands, the oS: will be assumed to be part of the command you are adding to the structure.
Make the structure self destruct when used with action goop-break-structure
This is how it will look in the yml file:
Commands:
- 'goop sudo %player% warp maze'
- 'goop tell %player% &8A pressure plate clicks... &cYou fell back to the beginning of the maze!'
- 'goop-break-structure'
Use the amazing power of Mythic Mobs for mechanics, particle effects, and whatever else!
Sudo players to run mythic skills with /goop mythicmobs runSkillAs <skill> %player_name%
Sudo entities to run mythic skills with /goop mythicmobs runSkillAs <skill> %entity_uuid%
This exact same line also works for players.
Perfect for targetting the monster, animal, or even dropped item that activated the pressure plate.
Summon a MythicMob at the structure location, looking forward, with the following command:
mm mobs spawn <Mob> 1 %world%,%structure-blockcenter-comma%,%structure-forward%,0
Run commands as the player who clicks with goop sudo %player% <command>
Does it require op? You may use goop sudop instead! Just be aware of how hacky this is... (read further by calling /goop sudo)
Delay command execution with goop delay
Is your structure not working? Have you:
Added and are using at least one trigger?
Make sure that you are matching any trigger parameters of it.
Checked that you built it correctly?
Use /goop customstructures build to see what the structure is supposed to look like.
Easily check the index of an action using /goop customstructures edit actions list
When importing a new structure, you must do /goop reload to load it before you can add actions to it.
Some actions to keep in mind that come in handy
Example:
Composition:
- SOUL_CAMPFIRE 0 1 0
- OBSERVER 0 0 0||FACING FORWARD
Triggers:
- INTERACT
Commands:
# Breaks the structure when activated
- 'goop-break-structure'
# Summons a mythicmob facing in the same direction of the structure
- 'mm mobs spawn <Mob> 1 %world%,%structure-blockcenter-comma%,%structure-forward%,0'