File: craftitems.lua

package info (click to toggle)
minetest-mod-currency 20200603.1302-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 248 kB
  • sloc: makefile: 2
file content (63 lines) | stat: -rw-r--r-- 1,752 bytes parent folder | download
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
local S = minetest.get_translator("currency")

minetest.register_craftitem("currency:minegeld_cent_5", {
	description = S("@1 Minegeld cent coin", "5"),
	inventory_image = "minegeld_cent_5.png",
		stack_max = 1000,
		groups = {minegeld = 1}
})

minetest.register_craftitem("currency:minegeld_cent_10", {
	description = S("@1 Minegeld cent coin", "10"),
	inventory_image = "minegeld_cent_10.png",
		stack_max = 1000,
		groups = {minegeld = 1}
})

minetest.register_craftitem("currency:minegeld_cent_25", {
	description = S("@1 Minegeld cent coin", "25"),
	inventory_image = "minegeld_cent_25.png",
		stack_max = 1000,
		groups = {minegeld = 1}
})

minetest.register_craftitem("currency:minegeld", {
	description = S("@1 Minegeld Note", "1"),
	inventory_image = "minegeld.png",
		stack_max = 65535,
		groups = {minegeld = 1}
})

minetest.register_craftitem("currency:minegeld_5", {
	description = S("@1 Minegeld Note", "5"),
	inventory_image = "minegeld_5.png",
		stack_max = 65535,
		groups = {minegeld = 1}
})

minetest.register_craftitem("currency:minegeld_10", {
	description = S("@1 Minegeld Note", "10"),
	inventory_image = "minegeld_10.png",
		stack_max = 65535,
		groups = {minegeld = 1}
})

minetest.register_craftitem("currency:minegeld_50", {
	description = S("@1 Minegeld Note", "50"),
	inventory_image = "minegeld_50.png",
		stack_max = 65535,
		groups = {minegeld = 1}
})

minetest.register_craftitem("currency:minegeld_100", {
	description = S("@1 Minegeld Note", "100"),
	inventory_image = "minegeld_100.png",
		stack_max = 65535,
		groups = {minegeld = 1}
})

minetest.register_craftitem("currency:minegeld_bundle", {
	description = S("Bundle of random Minegeld notes"),
	inventory_image = "minegeld_bundle.png",
		stack_max = 65535,
})