forked from nalc/homedecor_modpack
move all craftitems to the top of the crafts file
This commit is contained in:
parent
d69b8392ba
commit
38ad778ade
@ -4,13 +4,66 @@
|
|||||||
|
|
||||||
local S = homedecor.gettext
|
local S = homedecor.gettext
|
||||||
|
|
||||||
-- misc stuff :D
|
-- misc craftitems
|
||||||
|
|
||||||
minetest.register_craftitem("homedecor:terracotta_base", {
|
minetest.register_craftitem("homedecor:terracotta_base", {
|
||||||
description = S("Uncooked Terracotta Base"),
|
description = S("Uncooked Terracotta Base"),
|
||||||
inventory_image = "homedecor_terracotta_base.png",
|
inventory_image = "homedecor_terracotta_base.png",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craftitem("homedecor:roof_tile_terracotta", {
|
||||||
|
description = S("Terracotta Roof Tile"),
|
||||||
|
inventory_image = "homedecor_roof_tile_terracotta.png",
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craftitem("homedecor:plastic_sheeting", {
|
||||||
|
description = S("Plastic sheet"),
|
||||||
|
inventory_image = "homedecor_plastic_sheeting.png",
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craftitem("homedecor:plastic_base", {
|
||||||
|
description = S("Unprocessed Plastic base"),
|
||||||
|
wield_image = "homedecor_plastic_base.png",
|
||||||
|
inventory_image = "homedecor_plastic_base_inv.png",
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craftitem("homedecor:drawer_small", {
|
||||||
|
description = S("Small Wooden Drawer"),
|
||||||
|
inventory_image = "homedecor_drawer_small.png",
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craftitem("homedecor:brass_ingot", {
|
||||||
|
description = S("Brass Ingot"),
|
||||||
|
inventory_image = "homedecor_brass_ingot.png",
|
||||||
|
groups = { brass_ingot=1 }
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craftitem("homedecor:ic", {
|
||||||
|
description = S("Simple Integrated Circuit"),
|
||||||
|
inventory_image = "homedecor_ic.png",
|
||||||
|
})
|
||||||
|
|
||||||
|
-- alternate craftitem for silicon if mesecons isn't installed.
|
||||||
|
|
||||||
|
if ( minetest.get_modpath("mesecons") ) == nil then
|
||||||
|
|
||||||
|
minetest.register_craftitem(":mesecons_materials:silicon", {
|
||||||
|
description = S("Silicon lump"),
|
||||||
|
inventory_image = "homedecor_silicon.png",
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft( {
|
||||||
|
output = "mesecons_materials:silicon 4",
|
||||||
|
recipe = {
|
||||||
|
{ "default:sand", "default:sand" },
|
||||||
|
{ "default:sand", "default:steel_ingot" },
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
-- the actual crafts
|
||||||
|
|
||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = "homedecor:terracotta_base 8",
|
output = "homedecor:terracotta_base 8",
|
||||||
@ -22,10 +75,7 @@ minetest.register_craft( {
|
|||||||
replacements = { {"bucket:bucket_water", "bucket:bucket_empty"}, },
|
replacements = { {"bucket:bucket_water", "bucket:bucket_empty"}, },
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("homedecor:roof_tile_terracotta", {
|
|
||||||
description = S("Terracotta Roof Tile"),
|
|
||||||
inventory_image = "homedecor_roof_tile_terracotta.png",
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "cooking",
|
type = "cooking",
|
||||||
@ -58,17 +108,6 @@ minetest.register_craft( {
|
|||||||
|
|
||||||
--
|
--
|
||||||
|
|
||||||
minetest.register_craftitem("homedecor:plastic_sheeting", {
|
|
||||||
description = S("Plastic sheet"),
|
|
||||||
inventory_image = "homedecor_plastic_sheeting.png",
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craftitem("homedecor:plastic_base", {
|
|
||||||
description = S("Unprocessed Plastic base"),
|
|
||||||
wield_image = "homedecor_plastic_base.png",
|
|
||||||
inventory_image = "homedecor_plastic_base_inv.png",
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = "homedecor:plastic_base 4",
|
output = "homedecor:plastic_base 4",
|
||||||
@ -503,12 +542,6 @@ minetest.register_craft({
|
|||||||
|
|
||||||
--
|
--
|
||||||
|
|
||||||
minetest.register_craftitem("homedecor:drawer_small", {
|
|
||||||
description = S("Small Wooden Drawer"),
|
|
||||||
inventory_image = "homedecor_drawer_small.png",
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
output = "homedecor:drawer_small",
|
output = "homedecor:drawer_small",
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -593,12 +626,6 @@ minetest.register_craft({
|
|||||||
burntime = 30,
|
burntime = 30,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("homedecor:brass_ingot", {
|
|
||||||
description = S("Brass Ingot"),
|
|
||||||
inventory_image = "homedecor_brass_ingot.png",
|
|
||||||
groups = { brass_ingot=1 }
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = "homedecor:brass_ingot 2",
|
output = "homedecor:brass_ingot 2",
|
||||||
@ -665,23 +692,6 @@ minetest.register_craft( {
|
|||||||
|
|
||||||
-- Home electronics
|
-- Home electronics
|
||||||
|
|
||||||
if ( minetest.get_modpath("mesecons") ) == nil then
|
|
||||||
|
|
||||||
minetest.register_craftitem(":mesecons_materials:silicon", {
|
|
||||||
description = S("Silicon lump"),
|
|
||||||
inventory_image = "homedecor_silicon.png",
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft( {
|
|
||||||
output = "mesecons_materials:silicon 4",
|
|
||||||
recipe = {
|
|
||||||
{ "default:sand", "default:sand" },
|
|
||||||
{ "default:sand", "default:steel_ingot" },
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
end
|
|
||||||
|
|
||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
output = "homedecor:ic 4",
|
output = "homedecor:ic 4",
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -690,11 +700,6 @@ minetest.register_craft( {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("homedecor:ic", {
|
|
||||||
description = S("Simple Integrated Circuit"),
|
|
||||||
inventory_image = "homedecor_ic.png",
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
output = "homedecor:television",
|
output = "homedecor:television",
|
||||||
recipe = {
|
recipe = {
|
||||||
|
Loading…
Reference in New Issue
Block a user