Add comment in minecart code
[MineClone/MineClone2.git] / mods / ITEMS / mcl_core / craftitems.lua
blobbbdd66ea62e02305f26966dad207fcdcc9396026
1 -- mods/default/craftitems.lua
3 --
4 -- Crafting items
5 --
7 minetest.register_craftitem("mcl_core:stick", {
8 description = "Stick",
9 _doc_items_longdesc = "Sticks are a very versatile crafting material; used in countless crafting recipes.",
10 _doc_items_hidden = false,
11 inventory_image = "default_stick.png",
12 stack_max = 64,
13 groups = { craftitem=1, stick=1 },
16 minetest.register_craftitem("mcl_core:paper", {
17 description = "Paper",
18 _doc_items_longdesc = "Paper is used to craft books and maps.",
19 inventory_image = "default_paper.png",
20 stack_max = 64,
21 groups = { craftitem=1 },
24 minetest.register_craftitem("mcl_core:coal_lump", {
25 description = "Coal",
26 _doc_items_longdesc = "“Coal” refers to coal lumps obtained by digging coal ore which can be found underground. Coal is your standard furnace fuel, but it can also be used to make torches, coal blocks and a few other things.",
27 _doc_items_hidden = false,
28 groups = { coal=1 },
29 inventory_image = "default_coal_lump.png",
30 stack_max = 64,
31 groups = { craftitem=1, coal=1 },
34 minetest.register_craftitem("mcl_core:charcoal_lump", {
35 description = "Charcoal",
36 _doc_items_longdesc = "Charcoal is an alternative furnace fuel created by cooking wood in a furnace. It has the same burning time as coal and also shares many of its crafting recipes, but it can not be used to create coal blocks.",
37 _doc_items_hidden = false,
38 groups = { coal=1 },
39 inventory_image = "mcl_core_charcoal.png",
40 stack_max = 64,
41 groups = { craftitem=1, coal=1 },
44 minetest.register_craftitem("mcl_core:iron_nugget", {
45 description = "Iron Nugget",
46 _doc_items_longdesc = "Iron nuggets are very small pieces of molten iron; the main purpose is to create iron ingots.",
47 inventory_image = "mcl_core_iron_nugget.png",
48 stack_max = 64,
49 groups = { craftitem=1 },
52 minetest.register_craftitem("mcl_core:gold_nugget", {
53 description = "Gold Nugget",
54 _doc_items_longdesc = "Gold nuggets are very small pieces of molten gold; the main purpose is to create gold ingots.",
55 inventory_image = "mcl_core_gold_nugget.png",
56 stack_max = 64,
57 groups = { craftitem=1 },
60 minetest.register_craftitem("mcl_core:diamond", {
61 description = "Diamond",
62 _doc_items_longdesc = "Diamonds are precious minerals and useful to create the highest tier of armor and tools.",
63 inventory_image = "default_diamond.png",
64 stack_max = 64,
65 groups = { craftitem=1 },
68 minetest.register_craftitem("mcl_core:clay_lump", {
69 description = "Clay Ball",
70 _doc_items_longdesc = "Clay balls are a raw material, mainly used to create bricks in the furnace.",
71 _doc_items_hidden = false,
72 inventory_image = "default_clay_lump.png",
73 stack_max = 64,
74 groups = { craftitem=1 },
77 minetest.register_craftitem("mcl_core:iron_ingot", {
78 description = "Iron Ingot",
79 _doc_items_longdesc = "Molten iron. It is used to craft armor, tools, and whatnot.",
80 inventory_image = "default_steel_ingot.png",
81 stack_max = 64,
82 groups = { craftitem=1 },
85 minetest.register_craftitem("mcl_core:gold_ingot", {
86 description = "Gold Ingot",
87 _doc_items_longdesc = "Molten gold. It is used to craft armor, tools, and whatnot.",
88 inventory_image = "default_gold_ingot.png",
89 stack_max = 64,
90 groups = { craftitem=1 },
93 minetest.register_craftitem("mcl_core:emerald", {
94 description = "Emerald",
95 _doc_items_longdesc = "Emeralds are not very useful on their own, but they can exchanged for gold ingots by crafting.",
96 inventory_image = "mcl_core_emerald.png",
97 stack_max = 64,
98 groups = { craftitem=1 },
101 minetest.register_craftitem("mcl_core:brick", {
102 description = "Brick",
103 _doc_items_longdesc = "Bricks are used to craft brick blocks.",
104 inventory_image = "default_clay_brick.png",
105 stack_max = 64,
106 groups = { craftitem=1 },
109 minetest.register_craftitem("mcl_core:flint", {
110 description = "Flint",
111 _doc_items_longdesc = "Flint is a raw material.",
112 inventory_image = "default_flint.png",
113 stack_max = 64,
114 groups = { craftitem=1 },
117 minetest.register_craftitem("mcl_core:sugar", {
118 description = "Sugar",
119 _doc_items_longdesc = "Sugar comes from sugar canes and is used to make sweet foods.",
120 inventory_image = "mcl_core_sugar.png",
121 stack_max = 64,
122 groups = { craftitem = 1 },
125 minetest.register_craftitem("mcl_core:bowl",{
126 description = "Bowl",
127 _doc_items_longdesc = "Bowls are mainly used to hold tasty soups.",
128 inventory_image = "mcl_core_bowl.png",
129 stack_max = 64,
130 groups = { craftitem = 1 },
133 minetest.register_craftitem("mcl_core:apple", {
134 description = "Apple",
135 _doc_items_longdesc = "Apples are food items which can be eaten.",
136 wield_image = "default_apple.png",
137 inventory_image = "default_apple.png",
138 stack_max = 64,
139 on_place = minetest.item_eat(4),
140 on_secondary_use = minetest.item_eat(4),
141 groups = { food = 2, eatable = 4 },
142 _mcl_saturation = 2.4,
145 -- TODO: Status effects
146 minetest.register_craftitem("mcl_core:apple_gold", {
147 description = core.colorize("#55FFFF", "Golden Apple"),
148 _doc_items_longdesc = "Golden apples are precious food items which can be eaten.",
149 wield_image = "mcl_core_apple_golden.png",
150 inventory_image = "mcl_core_apple_golden.png",
151 stack_max = 64,
152 -- TODO: Reduce to 4 when it's ready
153 on_place = minetest.item_eat(8),
154 on_secondary_use = minetest.item_eat(8),
155 groups = { food = 2, eatable = 8, can_eat_when_full = 1 },
156 _mcl_saturation = 9.6,