2015-06-29 20:55:56 +03:00
|
|
|
-- mods/default/craftitems.lua
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Crafting items
|
|
|
|
--
|
|
|
|
|
|
|
|
minetest.register_craftitem("default:stick", {
|
|
|
|
description = "Stick",
|
|
|
|
inventory_image = "default_stick.png",
|
|
|
|
stack_max = 64,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("default:paper", {
|
|
|
|
description = "Paper",
|
|
|
|
inventory_image = "default_paper.png",
|
|
|
|
stack_max = 64,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("default:book", {
|
|
|
|
description = "Book",
|
|
|
|
inventory_image = "default_book.png",
|
|
|
|
stack_max = 64,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("default:coal_lump", {
|
2017-01-04 07:20:13 +02:00
|
|
|
description = "Coal",
|
2017-01-08 00:56:52 +02:00
|
|
|
groups = { coal=1 },
|
2015-06-29 20:55:56 +03:00
|
|
|
inventory_image = "default_coal_lump.png",
|
|
|
|
stack_max = 64,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("default:charcoal_lump", {
|
2017-01-04 07:20:13 +02:00
|
|
|
description = "Charcoal",
|
2017-01-08 00:56:52 +02:00
|
|
|
groups = { coal=1 },
|
2015-06-29 20:55:56 +03:00
|
|
|
inventory_image = "default_charcoal_lump.png",
|
|
|
|
stack_max = 64,
|
|
|
|
})
|
|
|
|
|
2017-01-04 11:56:38 +02:00
|
|
|
minetest.register_craftitem("default:iron_nugget", {
|
|
|
|
description = "Iron Nugget",
|
|
|
|
inventory_image = "default_iron_nugget.png",
|
|
|
|
stack_max = 64,
|
|
|
|
})
|
|
|
|
|
2015-06-29 20:55:56 +03:00
|
|
|
minetest.register_craftitem("default:gold_nugget", {
|
|
|
|
description = "Gold Nugget",
|
|
|
|
inventory_image = "default_gold_nugget.png",
|
|
|
|
stack_max = 64,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("default:diamond", {
|
|
|
|
description = "Diamond",
|
|
|
|
inventory_image = "default_diamond.png",
|
|
|
|
stack_max = 64,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("default:clay_lump", {
|
2017-01-10 04:43:31 +02:00
|
|
|
description = "Clay",
|
2015-06-29 20:55:56 +03:00
|
|
|
inventory_image = "default_clay_lump.png",
|
|
|
|
stack_max = 64,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("default:steel_ingot", {
|
2017-01-04 06:29:55 +02:00
|
|
|
description = "Iron Ingot",
|
2015-06-29 20:55:56 +03:00
|
|
|
inventory_image = "default_steel_ingot.png",
|
|
|
|
stack_max = 64,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("default:gold_ingot", {
|
|
|
|
description = "Gold Ingot",
|
|
|
|
inventory_image = "default_gold_ingot.png",
|
|
|
|
stack_max = 64,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("default:emerald", {
|
|
|
|
description = "Emerald",
|
|
|
|
inventory_image = "default_emerald.png",
|
|
|
|
stack_max = 64,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("default:clay_brick", {
|
2017-01-04 07:20:13 +02:00
|
|
|
description = "Brick",
|
2015-06-29 20:55:56 +03:00
|
|
|
inventory_image = "default_clay_brick.png",
|
|
|
|
stack_max = 64,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("default:flint", {
|
|
|
|
description = "Flint",
|
|
|
|
inventory_image = "default_flint.png",
|
|
|
|
stack_max = 64,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("default:gunpowder", {
|
|
|
|
description = "Gunpowder",
|
|
|
|
inventory_image = "default_gunpowder.png",
|
|
|
|
stack_max = 64,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("default:bone", {
|
|
|
|
description = "Bone",
|
|
|
|
inventory_image = "default_bone.png",
|
|
|
|
stack_max = 64,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("default:glowstone_dust", {
|
|
|
|
description = "Glowstone Dust",
|
|
|
|
inventory_image = "default_glowstone_dust.png",
|
|
|
|
stack_max = 64,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("default:fish_raw", {
|
|
|
|
description = "Raw Fish",
|
|
|
|
groups = {},
|
|
|
|
inventory_image = "default_fish.png",
|
|
|
|
on_use = minetest.item_eat(2),
|
|
|
|
stack_max = 64,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("default:fish", {
|
|
|
|
description = "Cooked Fish",
|
|
|
|
groups = {},
|
|
|
|
inventory_image = "default_fish_cooked.png",
|
|
|
|
on_use = minetest.item_eat(4),
|
|
|
|
stack_max = 64,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("default:sugar", {
|
|
|
|
description = "Sugar",
|
|
|
|
inventory_image = "default_sugar.png",
|
|
|
|
stack_max = 64,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("default:string",{
|
|
|
|
description = "String",
|
|
|
|
inventory_image = "default_string.png",
|
|
|
|
stack_max = 64,
|
|
|
|
})
|
|
|
|
|
2017-01-12 01:43:35 +02:00
|
|
|
minetest.register_craftitem("default:bowl",{
|
|
|
|
description = "Bowl",
|
|
|
|
inventory_image = "default_bowl.png",
|
|
|
|
stack_max = 64,
|
|
|
|
})
|
|
|
|
|
2015-06-29 20:55:56 +03:00
|
|
|
minetest.register_craftitem("default:prismarine_cry", {
|
|
|
|
description = "Prismarine Crystals",
|
|
|
|
inventory_image = "default_prismarine_crystals.png",
|
|
|
|
stack_max = 64,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("default:prismarine_shard", {
|
|
|
|
description = "Prismarine Shard",
|
|
|
|
inventory_image = "default_prismarine_shard.png",
|
|
|
|
stack_max = 64,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("default:quartz_crystal", {
|
2017-01-04 09:01:40 +02:00
|
|
|
description = "Nether Quartz",
|
2015-06-29 20:55:56 +03:00
|
|
|
inventory_image = "default_quartz_crystal.png",
|
|
|
|
stack_max = 64,
|
2017-01-04 06:29:55 +02:00
|
|
|
})
|
|
|
|
|
2017-01-12 01:38:04 +02:00
|
|
|
minetest.register_craftitem("default:apple", {
|
2017-01-04 23:45:10 +02:00
|
|
|
description = "Apple",
|
|
|
|
wield_image = "default_apple.png",
|
|
|
|
inventory_image = "default_apple.png",
|
|
|
|
stack_max = 64,
|
|
|
|
on_use = minetest.item_eat(4),
|
|
|
|
})
|
|
|
|
|
2017-01-12 01:38:04 +02:00
|
|
|
minetest.register_craftitem("default:apple_gold", {
|
2017-01-12 07:36:44 +02:00
|
|
|
description = core.colorize("#55FFFF", "Golden Apple"),
|
2017-01-04 23:45:10 +02:00
|
|
|
wield_image = "default_apple_gold.png",
|
|
|
|
inventory_image = "default_apple_gold.png",
|
|
|
|
stack_max = 64,
|
|
|
|
on_use = minetest.item_eat(8),
|
|
|
|
})
|
|
|
|
|
2017-01-04 06:29:55 +02:00
|
|
|
minetest.register_alias("default:steel_ingot", "default:iron_ingot")
|