Skip to content

[1.21.1] Loot Conditions

Insane96 edited this page Apr 19, 2026 · 1 revision

Loot Conditions

InsaneLib provides additional loot conditions that can be used in loot tables or data packs.


insanelib:block_tag_match

Passes if the block being belongs to the specified block tag. If no block state is present in the loot context (e.g. entity loot), the condition always passes.

Key Type Info
block_tag Identifier The block tag to match against
{
  "condition": "insanelib:block_tag_match",
  "block_tag": "minecraft:logs"
}

insanelib:killer_has_advancement

Passes if the player who dealt the killing blow has completed the specified advancement. Fails if there is no killer player in the loot context.

Key Type Info
advancement Identifier The advancement that the killer must have completed
{
  "condition": "insanelib:killer_has_advancement",
  "advancement": "minecraft:story/mine_diamond"
}

insanelib:non_player_arised_drop

Passes if the drop was caused by a natural mob death — that is, the dying entity is a non-player living entity, and there is no killer player, no explosion radius, and no tool in the loot context.

This condition takes no additional parameters.

{
  "condition": "insanelib:non_player_arised_drop"
}

Clone this wiki locally