Trigger
Configurable weapon controls
Trigger:
Main_Hand: <TriggerType>
Off_Hand: <TriggerType>
Dual_Wield:
Main_Hand: <TriggerType>
Off_Hand: <TriggerType>
Circumstance:
Reloading: <DENY/REQUIRED>
Zooming: <DENY/REQUIRED>
Sneaking: <DENY/REQUIRED>
Standing: <DENY/REQUIRED>
Walking: <DENY/REQUIRED>
Riding: <DENY/REQUIRED>
Sprinting: <DENY/REQUIRED>
Dual_Wielding: <DENY/REQUIRED>
Swimming: <DENY/REQUIRED>
In_Midair: <DENY/REQUIRED>
Gliding: <DENY/REQUIRED>
Ammo_Empty: <DENY/REQUIRED>
Deny_Mechanics: <Mechanics>For TriggerType, you have the following options:
start_sneakend_sneakdouble_sneakstart_sprintend_sprintright_clickleft_clickdrop_itemjumpdouble_jumpstart_swimend_swimstart_glideend_glideswap_handsstart_walkend_walkstart_in_midairend_in_midairstart_standend_stand
Main_Hand
The trigger used when the weapon is held in the main hand.
Off_Hand
The trigger used when the weapon is held in the off hand.
Dual_Wield
When dual-wielding weapons, you may want to change the trigger. For example, you may want to change the scoping trigger from left_click to start_sneak.
Main_Hand-> Dual wielding trigger for main hand.Off_Hand-> Dual wielding trigger for off hand.
Circumstance
Allows you to deny or force certain actions for the trigger to work. For example, you can deny shooting while sprinting or scoping while dual-wielding.
For the following options, use:
DENYto prevent the trigger from working with this condition.REQUIREDto force the entity to use this condition before the trigger works.Delete the config line to allow the action.
Reloading-> If the shooter is reloading the weapon.Zooming-> If the shooter is currently scoping.Sneaking-> If the shooter is holding shift.Standing-> If the shooter is not moving.Walking-> If the shooter is walking.Riding-> If the shooter is riding a mount.Sprinting-> If the shooter is sprinting.Dual_Wielding-> If the shooter is using 2 weapons.Swimming-> If the shooter is currently submerged underwater or sprint swimming.In_Midair-> If the shooter is not on the ground.Gliding-> If the shooter is gliding with an elytra.Ammo_Empty-> If the held weapons are empty
Deny_Mechanics
The mechanics to play when the trigger is denied. Usually, this is a sound queue (like an angry villager) or an action bar alerting the user that they cannot perform that action. Use the Mechanics wiki.
@Source{}-> The player who attempted to use the trigger<deny_reason>-> Which "action" caused the denial.This will be 1 option from Circumstance, but lowercase.
For example,
Dual_Wielding->dual wielding.
Example
Scope:
Trigger:
Main_Hand: "LEFT_CLICK"
Off_Hand: "LEFT_CLICK"
Circumstance:
Dual_Wielding: "DENY"
Deny_Mechanics:
- "ActionBar{message=<red><i>You cannot scope while <deny_reason>!}"This example is taken from the 50_GS, and will let players scope with the pistol by punching. If they are holding 2 weapons, players will not be able to scope.
Last updated