Loot tables
NightKosh opened this issue ยท 1 comments
- Graves content #69
- Mobs drop
- Fishing
@Divineaspect I reworked graves generation so it will use loot tables since next version.
Here you can look on them: https://github.com/NightKosh/Gravestone-mod-Extended/tree/master/src/main/resources/assets/gravestone-extended/loot_tables/graves
Also I've added few own "conditions" (which can be used only for graves content):
-
"grave_material" - allows to generate content only for specific grave material.
it take such values as "IRON", "GOLD", "DIAMOND", and some other( https://github.com/NightKosh/Gravestone-mod-Graves-API/blob/c951db91840291d2a7bac0c04755ab472953d537/nightkosh/gravestone/api/grave/EnumGraveMaterial.java#L13-L30 )
example: https://github.com/NightKosh/Gravestone-mod-Extended/blob/master/src/main/resources/assets/gravestone-extended/loot_tables/graves/player/wizard.json#L202-L207 -
"grave_type" - allows to generate content only for graves which belongs to specific type of "mobs":
- PLAYER_GRAVES
- VILLAGERS_GRAVES
- DOGS_GRAVES
- HORSE_GRAVES
example : https://github.com/NightKosh/Gravestone-mod-Extended/blob/master/src/main/resources/assets/gravestone-extended/loot_tables/graves/grave.json#L6-L11
- "content_type" - a type of content:
- JUNK
- WORKE
- MINER
- WIZARD
- WARRIOR
- ADVENTURER
- TREASURY
- OTHER
example: https://github.com/NightKosh/Gravestone-mod-Extended/blob/master/src/main/resources/assets/gravestone-extended/loot_tables/graves/player.json#L57-L62
- "corpse_content_type" - to chose what should be placed in grave:
- CORPSE
- BONES_AND_FLESH
- SKULL_BONES_AND_FLESH
example: https://github.com/NightKosh/Gravestone-mod-Extended/blob/master/src/main/resources/assets/gravestone-extended/loot_tables/graves/player.json#L6-L11
Furtheremore there is a special function : "set_corpse" which allows you to place mob corpse to the grave.
example: https://github.com/NightKosh/Gravestone-mod-Extended/blob/master/src/main/resources/assets/gravestone-extended/loot_tables/graves/player/corpse/corpse.json#L11-L15