Skip to main content
Version: 2.x

Overview

Vampirism registers custom loot conditions (Registries.LOOT_CONDITION_TYPE). They can be used anywhere vanilla loot conditions are accepted: in loot table pools/entries, in predicates, and in the conditions list of a global loot modifier.

Every condition object has a "condition" key naming the type.

JSON Schema

schemas/vampirism_loot_conditions.schema.json – validates a single Vampirism loot condition object.

conditionChecksPage
vampirism:factionfaction membership / level of this_entityFaction
vampirism:with_oil_itemthe tool has a specific applied oilHas Applied Oil
vampirism:with_stakea targeted entity holds a stakeHolding Stake
vampirism:adjustable_levela targeted IAdjustableLevel entity's exact levelAdjustable Level
vampirism:is_tent_spawnerthe block_entity is an active tent spawnerTent Spawner

Entity targets

Conditions that take a target use the vanilla LootContext.EntityTarget values:

this, attacker, direct_attacker, attacking_player, target_entity, interacting_entity.

The corresponding loot parameter must be provided by the context (e.g. this needs this_entity).