inventory-system icon indicating copy to clipboard operation
inventory-system copied to clipboard

Add loot data

Open scriptsengineer opened this issue 4 months ago • 0 comments

Use minetest for example

  • Loot from the default mod is registered here, -- with the rest being registered in the respective mods

dungeon_loot.registered_loot = { -- various items {name = "default:stick", chance = 0.6, count = {3, 6}}, {name = "default:flint", chance = 0.4, count = {1, 3}},

-- farming / consumable {name = "default:apple", chance = 0.4, count = {1, 4}}, {name = "default:cactus", chance = 0.4, count = {1, 4}, types = {"sandstone", "desert"}},

-- minerals {name = "default:coal_lump", chance = 0.9, count = {1, 12}}, {name = "default:gold_ingot", chance = 0.5}, {name = "default:steel_ingot", chance = 0.4, count = {1, 6}}, {name = "default:mese_crystal", chance = 0.1, count = {2, 3}},

-- tools {name = "default:sword_wood", chance = 0.6}, {name = "default:pick_stone", chance = 0.3}, {name = "default:axe_diamond", chance = 0.05},

scriptsengineer avatar Oct 05 '24 15:10 scriptsengineer