summaryrefslogtreecommitdiff
path: root/currency/loot.lua
blob: e687724f22945fd482dd0bb0f7bc466add3c7947 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
if not minetest.get_modpath("loot") then
	return
end

loot.register_loot({
	weights = { generic = 50 },
	payload = {
		stack = ItemStack("currency:minegeld"),
		min_size = 1,
		max_size = 250,
	},
})

loot.register_loot({
	weights = { generic = 50 },
	payload = {
		stack = ItemStack("currency:minegeld_5"),
		min_size = 1,
		max_size = 50,
	},
})

loot.register_loot({
	weights = { generic = 50 },
	payload = {
		stack = ItemStack("currency:minegeld_10"),
		min_size = 1,
		max_size = 10,
	},
})