跳到主要内容

Miscellaneous Events

Events that cover general interactions and system states.

Event Library

Configuration

player_input_event

Triggers when a player presses a specific control key. inputTypePlayerInputType

The input to detect: FORWARD, BACKWARD, LEFT, RIGHT, JUMP, SNEAK, SPRINT.

advancement_grant_event

Triggers when a player completes an advancement. advancementString

The advancement ID (e.g., minecraft:story/mine_stone). isChallengeBoolean

If true, matches only challenge advancements.

experience_orb_pickup_event

Triggers when picking up an experience orb. minExperienceInt

Minimum XP in the orb.

fact_check_events

Monitors variable changes in real-time. factString

The fact to monitor (e.g. placeholder_fact). valueString

The target value to check against.

recipe_unlock_event

Triggered when a player unlocks a recipe.

PropertyValue
Entry IDrecipe_unlock_event
TypeEvent
ColorYellow
Iconmdi:book-plus
FieldTypeDescription
recipeKeyVar<String>The recipe key that needs to be unlocked. Leave empty to trigger for any recipe.

player_elytra_event

Triggers when entering gliding mode.

PropertyValue
Entry IDplayer_elytra_event
TypeEvent
ColorYellow
Iconmdi:parachute

This entry has no configurable fields.

Examples

player_input_event:
inputType: JUMP
actions:
- velocity_action:
vector: "0, 1.0, 0"
experience_orb_pickup_event:
minExperience: 10
actions:
- sound_action:
sound: ENTITY_PLAYER_LEVELUP