summaryrefslogtreecommitdiff
path: root/currency/loot.lua
blob: d0ea8204524d571495f3eb0395bb29256b50f19c (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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,
	},
})


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

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