Overview
Vampirism registers custom loot functions (Registries.LOOT_FUNCTION_TYPE). They can be used
anywhere vanilla loot functions are accepted (loot table functions, given_item_modifiers, …).
Every function object has a "function" key naming the type, and – since they all extend
LootItemConditionalFunction – an optional "conditions" array of
loot conditions.
JSON Schema
function | Effect | Page |
|---|---|---|
vampirism:set_vampire_book | Fill a vampire book with random content from a tag | Set Vampire Book |
vampirism:set_item_blood_charge | Charge an IBloodChargeable item | Charge Blood |
vampirism:add_refinement_set | Apply a random refinement set to an accessory | Add Refinement Set |
vampirism:set_oil | Apply an oil to the item | Set Oil |
vampirism:set_blood | Set the blood amount of a blood bottle | Set Blood |
vampirism:biome_map | Turn a map into a vampire-forest locator map | Biome Map |
Vampirism also ships one global loot modifier – see Smelting.