-
Notifications
You must be signed in to change notification settings - Fork 2
[1.21.1] Triggers
Insane96 edited this page Apr 19, 2026
·
1 revision
InsaneLib provides custom Advancement Triggers that can be used in data packs.
Advancement files are placed in:
data/<namespace>/advancement/<name>.json
Triggers when a player breaks a block. Optionally filters by block tag.
| Key | Type | Default | Info |
|---|---|---|---|
player |
Entity Predicate | None | Optional predicate to filter the player |
tag |
Identifier | None | If present, only triggers when the broken block is in this tag |
The following example triggers when a player breaks any block in the minecraft:logs tag:
{
"criteria": {
"break_log": {
"trigger": "insanelib:block_broken",
"conditions": {
"tag": "minecraft:logs"
}
}
}
}