Playable when there is a matching item in 1 or more specified slots of the player's inventory.
Accepts active_cooldown
, fade_in
, fade_out
, items
, max_tracks
, not
, passive_persistence
, persistence
,
play_when_paused
, priority
, slots
, start_as_disabled
, ticks_before_active
, ticks_before_audio
,
ticks_between_audio
, toggle_inactive_playable
, and toggle_save_status
Requires Parameters identifier
AND items
active_cooldown <default: 0>Determines the number of ticks that the trigger will not be able toactivate for after being active and deactivating.fade_in <default: 0>The number of ticks it will take the trigger to fade in after the triggeractivates.fade_out <default: 0>The number of ticks it will take the trigger to fade out when the triggeris no longer active.items <default: [ empty ]>Determines the items that are allowed to match the specified slots inorder for this trigger to be active. Item strings are parsed likenamespace:id:count:nbt where only namespace:id is required. For example,minecraft:iron:3, would match any selected inventory slot that containsat least 3 iron. In regards to NBT matching, only specify it if youalready have a good understanding of how NBT data works. NBT data isparsed in the same way as the mob_nbt parameter for the mob trigger. Itworks by specifying a prefix followed by a key or potentially multiplekeys sometimes followed by a value. Each prefix,key, and value must beseparated by a semicolon which could look something like`prefix;key;key;value`. The parameter passes when any of the entries pass.Prefixes must be fully capitalized and are only allowed at the beginningof the entry or directly after another prefix that can be modified. Thereare 6 different prefixes that can be used.EQUAL = The tag value must be equal to the specified value. ModifiesLESSER to change the operation to <= and GREATER to change theoperation to >=GREATER = The tag value must be greater than the specified value.INVERT = Modifies any non INVERT prefix to change its operation similarto the not parameter. If used alone it will check if the tag value isevaluates to false.KEY_PRESENT = Checks if the specified tag exists as a compound tag.LESSER = The tag value must be less than the specified value.VAL_PRESENT = Checks if the specified tag exists as a tag with a non-tagvalue.max_tracks <default: 0>Determines the maximum number of audio tracks that will be able to playwhile the trigger is active. The counter is reset once the trigger is nolonger active. Any value less than 1 will be treated as infinite.not <default: false>Enabling this inverts the activation requirements meaning that the triggerwill NOT be active when its parameters are met. Ignored by most time-basedparameters.passive_persistence <default: true>Determines whether the persistence parameter should be applied when thetrigger is not active. When disabled, the trigger will ignore itspersistence parameter if there is a higher priority trigger active.persistence <default: 0>Determines the number of ticks after its parameters are no longer met thatthe trigger will be playable for.play_when_paused <default: false>Determines whether the trigger is playable while the game is paused.Requires has_paused_music to be active for the channel.priority <default: 1400>The priority value of the trigger in regards to other triggers that areplayable at the same time. By default the highest priority trigger alwayswins and will be active, but that can be changed via the debug config. Seethe independent_audio_pools and reverse_priority debug paremters for moreinfo. For trigger combinations, nonspecific parameters like fade_out aretaken from the highest priority trigger.slots <default: [ any ]>Determines the inventory slots that will be checked for the matched items.Accepts a list of strings where each element correlates to a slot or groupof slots to match. Valid elements include mainhand, offhand, hotbar, armor,any, or a specific slot number.mainhand = The item currently held in the main hand.offhand = The item currently held in the off hand.hotbar = Any of the 9 hotbar slots.armor = Any of the 4 armor slots.any = Any inventory slot.start_as_disabled <default: false>If this is true the trigger will be toggled off by default and must betoggled on by something else to be usable. Unless you know how toggleswork it is recommended to leave this at its default value.ticks_before_active <default: 0>The number of ticks after the parameters are met before the trigger isactive (or playable if not the highest priority).ticks_before_audio <default: 0>The number of ticks after the trigger is active before audio can startplaying.ticks_between_audio <default: 0>The number of ticks after the audio finishes before the next entry in thepool can play.toggle_inactive_playable <default: false>Determines whether the trigger should be toggled off when it is playable(all of its parameters and timers are met) but it is not the active(highest priority or in combination with the highest priority) trigger.Unless you have a good understanding of how toggles and trigger stateswork it is recommended to leave this at its default value.toggle_save_status <default: false>Determines if and how the toggle status for the trigger is saved and set.Accepts integers from 0-2.0 = Nothing is saved or set. Toggle status will reset after a restart.1 = Toggle status will reset after the player logs out.2 = Toggle status will reset after the player logs out and be set whenthe player logs back in.