Data Packs
Vampirism exposes a lot of its content through data packs, so pack makers and mod-pack authors can tweak, extend or completely rework parts of the mod without any code.
Reference material:
- mod data –
src/main/resources/data/vampirism - generated data –
src/generated/resources/data
How data packs work
See the Minecraft Wiki: Data packs · Installing · Creating.
Mind the namespace: use vampirism to override one of Vampirism's own definitions, and your own
namespace for anything new.
JSON schemas
Every custom format on the following pages has a JSON schema under
schemas/ in the repository (linked at the
top of each page) for editor auto-completion and validation.
What you can customize
| Area | Notes |
|---|---|
| Blood Values | Item / entity / fluid blood via data maps. |
| Convertibles | Which creatures can be turned vampiric, and how. |
| Sun Damage | Biomes / dimensions exempt from vampire sun damage. |
| Recipes | Weapon Table, Alchemical Cauldron, Alchemy Table, Infuser. |
| Loot Conditions | vampirism:* loot conditions. |
| Loot Functions | vampirism:* loot functions + the smelting loot modifier. |
| Tasks | Provided by FactionApi – see its docs. |
| Skill trees | Provided by FactionApi – see its docs. |
Plus everything vanilla data packs already let you change (loot tables, advancements, tags, worldgen, recipes, …), and Vampirism's tags for mob spawns, village content and more.