1
0
Fork 0
MineClone2/mods/ITEMS/mcl_core/craftitems.lua

158 lines
5.1 KiB
Lua
Raw Normal View History

2015-06-29 17:55:56 +00:00
-- mods/default/craftitems.lua
--
-- Crafting items
--
2017-01-31 22:32:56 +00:00
minetest.register_craftitem("mcl_core:stick", {
2015-06-29 17:55:56 +00:00
description = "Stick",
_doc_items_longdesc = "Sticks are a very versatile crafting material; used in countless crafting recipes.",
_doc_items_hidden = false,
2015-06-29 17:55:56 +00:00
inventory_image = "default_stick.png",
stack_max = 64,
2017-02-07 01:54:17 +00:00
groups = { craftitem=1, stick=1 },
2015-06-29 17:55:56 +00:00
})
2017-01-31 22:32:56 +00:00
minetest.register_craftitem("mcl_core:paper", {
2015-06-29 17:55:56 +00:00
description = "Paper",
_doc_items_longdesc = "Paper is used to craft books and maps.",
2015-06-29 17:55:56 +00:00
inventory_image = "default_paper.png",
stack_max = 64,
groups = { craftitem=1 },
2015-06-29 17:55:56 +00:00
})
2017-01-31 22:32:56 +00:00
minetest.register_craftitem("mcl_core:coal_lump", {
description = "Coal",
_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.",
_doc_items_hidden = false,
2017-01-07 22:56:52 +00:00
groups = { coal=1 },
2015-06-29 17:55:56 +00:00
inventory_image = "default_coal_lump.png",
stack_max = 64,
2017-02-07 05:07:13 +00:00
groups = { craftitem=1, coal=1 },
2015-06-29 17:55:56 +00:00
})
2017-01-31 22:32:56 +00:00
minetest.register_craftitem("mcl_core:charcoal_lump", {
description = "Charcoal",
_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.",
_doc_items_hidden = false,
2017-01-07 22:56:52 +00:00
groups = { coal=1 },
2015-06-29 17:55:56 +00:00
inventory_image = "default_charcoal_lump.png",
stack_max = 64,
2017-02-07 05:07:13 +00:00
groups = { craftitem=1, coal=1 },
2015-06-29 17:55:56 +00:00
})
2017-01-31 22:32:56 +00:00
minetest.register_craftitem("mcl_core:iron_nugget", {
2017-01-04 09:56:38 +00:00
description = "Iron Nugget",
_doc_items_longdesc = "Iron nuggets are very small pieces of molten iron; the main purpose is to create iron ingots.",
2017-01-04 09:56:38 +00:00
inventory_image = "default_iron_nugget.png",
stack_max = 64,
groups = { craftitem=1 },
2017-01-04 09:56:38 +00:00
})
2017-01-31 22:32:56 +00:00
minetest.register_craftitem("mcl_core:gold_nugget", {
2015-06-29 17:55:56 +00:00
description = "Gold Nugget",
_doc_items_longdesc = "Gold nuggets are very small pieces of molten gold; the main purpose is to create gold ingots.",
2015-06-29 17:55:56 +00:00
inventory_image = "default_gold_nugget.png",
stack_max = 64,
groups = { craftitem=1 },
2015-06-29 17:55:56 +00:00
})
2017-01-31 22:32:56 +00:00
minetest.register_craftitem("mcl_core:diamond", {
2015-06-29 17:55:56 +00:00
description = "Diamond",
_doc_items_longdesc = "Diamonds are precious minerals and useful to create the highest tier of armor and tools.",
2015-06-29 17:55:56 +00:00
inventory_image = "default_diamond.png",
stack_max = 64,
groups = { craftitem=1 },
2015-06-29 17:55:56 +00:00
})
2017-01-31 22:32:56 +00:00
minetest.register_craftitem("mcl_core:clay_lump", {
2017-01-10 02:43:31 +00:00
description = "Clay",
_doc_items_longdesc = "Clay is a raw material.",
_doc_items_hidden = false,
2015-06-29 17:55:56 +00:00
inventory_image = "default_clay_lump.png",
stack_max = 64,
groups = { craftitem=1 },
2015-06-29 17:55:56 +00:00
})
2017-02-11 20:14:40 +00:00
minetest.register_craftitem("mcl_core:iron_ingot", {
2017-01-04 04:29:55 +00:00
description = "Iron Ingot",
_doc_items_longdesc = "Molten iron. It is used to craft armor, tools, and whatnot.",
2015-06-29 17:55:56 +00:00
inventory_image = "default_steel_ingot.png",
stack_max = 64,
groups = { craftitem=1 },
2015-06-29 17:55:56 +00:00
})
2017-01-31 22:32:56 +00:00
minetest.register_craftitem("mcl_core:gold_ingot", {
2015-06-29 17:55:56 +00:00
description = "Gold Ingot",
_doc_items_longdesc = "Molten gold. It is used to craft armor, tools, and whatnot.",
2015-06-29 17:55:56 +00:00
inventory_image = "default_gold_ingot.png",
stack_max = 64,
groups = { craftitem=1 },
2015-06-29 17:55:56 +00:00
})
2017-01-31 22:32:56 +00:00
minetest.register_craftitem("mcl_core:emerald", {
2015-06-29 17:55:56 +00:00
description = "Emerald",
_doc_items_longdesc = "Emeralds are not very useful on their own, but many villagers have a love for emeralds and often use it as a currency in trading.",
2015-06-29 17:55:56 +00:00
inventory_image = "default_emerald.png",
stack_max = 64,
groups = { craftitem=1 },
2015-06-29 17:55:56 +00:00
})
minetest.register_craftitem("mcl_core:brick", {
description = "Brick",
_doc_items_longdesc = "Bricks are used to craft brick blocks.",
2015-06-29 17:55:56 +00:00
inventory_image = "default_clay_brick.png",
stack_max = 64,
groups = { craftitem=1 },
2015-06-29 17:55:56 +00:00
})
2017-01-31 22:32:56 +00:00
minetest.register_craftitem("mcl_core:flint", {
2015-06-29 17:55:56 +00:00
description = "Flint",
_doc_items_longdesc = "Flint is a raw material.",
2015-06-29 17:55:56 +00:00
inventory_image = "default_flint.png",
stack_max = 64,
groups = { craftitem=1 },
2015-06-29 17:55:56 +00:00
})
2017-01-31 22:32:56 +00:00
minetest.register_craftitem("mcl_core:sugar", {
2015-06-29 17:55:56 +00:00
description = "Sugar",
_doc_items_longdesc = "Sugar comes from sugar canes and is used to make sweet foods.",
2015-06-29 17:55:56 +00:00
inventory_image = "default_sugar.png",
stack_max = 64,
groups = { craftitem = 1 },
2015-06-29 17:55:56 +00:00
})
2017-01-31 22:32:56 +00:00
minetest.register_craftitem("mcl_core:bowl",{
2017-01-11 23:43:35 +00:00
description = "Bowl",
_doc_items_longdesc = "Bowls are mainly used to hold tasty soups.",
2017-01-11 23:43:35 +00:00
inventory_image = "default_bowl.png",
stack_max = 64,
groups = { craftitem = 1 },
2017-01-11 23:43:35 +00:00
})
2017-01-31 22:32:56 +00:00
minetest.register_craftitem("mcl_core:apple", {
description = "Apple",
2017-05-21 02:21:12 +00:00
_doc_items_longdesc = "Apples are food items which can be eaten.",
wield_image = "default_apple.png",
inventory_image = "default_apple.png",
stack_max = 64,
2017-02-16 16:45:33 +00:00
on_place = minetest.item_eat(4),
on_secondary_use = minetest.item_eat(4),
groups = { food = 2, eatable = 4 },
2017-05-20 15:45:04 +00:00
_mcl_saturation = 2.4,
})
2017-05-21 02:21:12 +00:00
-- TODO: Status effects
2017-01-31 22:32:56 +00:00
minetest.register_craftitem("mcl_core:apple_gold", {
2017-01-12 05:36:44 +00:00
description = core.colorize("#55FFFF", "Golden Apple"),
2017-05-21 02:21:12 +00:00
_doc_items_longdesc = "Golden apples are precious food items which can be eaten.",
wield_image = "default_apple_gold.png",
inventory_image = "default_apple_gold.png",
stack_max = 64,
2017-05-21 02:21:12 +00:00
-- TODO: Reduce to 4 when it's ready
2017-02-16 16:45:33 +00:00
on_place = minetest.item_eat(8),
on_secondary_use = minetest.item_eat(8),
groups = { food = 2, eatable = 8 },
2017-05-20 15:45:04 +00:00
_mcl_saturation = 9.6,
})