Dungeon loot chests
Adds a loot chests, a command to prevent spawning loot in the chest so you can save a schematic with a loot chest:
/loot enable
/loot disable
Also adds 2 functions to create loot in other chests and/or with a different dungeon type (dungeon type is optional):
add_loot("name", "description", "mod:chest", "dungeontype")
add_loot_adv("mod:node", "mod:chest", "dungeontype")
You can add a new item to the loot pool with this function:
dungeon_loot.register({name = "default:dirt", chance = 0.6, count = {2, 16}, y = {-64, 32768}, types = {"normal", "sandstone", "desert"}})
If you want to create a new dungeon type only in types = {" "} write the new dungeontype
Here are all the dungeon types that are already created:
"normal", "sandstone", "desert", "ice"
If you don't put count, the item in the loot will always be 1, if you don't put y, it will appear on any coordinate, if you don't put types, it will appear in all loot chests
Dungeon loot chests was created with code from dungeon_loot by sfan5
Installation
ContentDB
- Content > Browse Online Content
- Search for "Dungeon loot chests"
- Click Install
Manually
-
Unzip the archive, rename the folder to
dungeon_loot_chests
and place it in.../minetest/mods/
-
GNU/Linux: If you use a system-wide installation place it in
~/.minetest/mods/
.
The Luanti engine can be found at GitHub.
For further information or help, see: Installing Mods.
License
See LICENSE.txt