specify dependencies, add recipes for inbox, steel

This commit is contained in:
Tai @ Flex 2016-08-28 04:19:23 +01:00
parent fcf0bd318d
commit 8cb84f736c
2 changed files with 45 additions and 13 deletions

View File

@ -1,2 +1,4 @@
default
moreores
inbox?
protector?

View File

@ -1,7 +1,16 @@
--some crafts to make tin less useless.
tincraft = {}
local tin = "moreores:tin_ingot"
local dstone = "default:desert_stone"
local s_tin = "tincraft:strong_tin"
-- Make a more valuable tin product
minetest.register_craftitem("tincraft:strong_tin", {
description = "Strengthened tin",
inventory_image = "moreores_tin_ingot.png^[colorize:yellow:30"
})
core.register_craft({
output = "tincraft:strong_tin",
@ -12,14 +21,33 @@ core.register_craft({
}
})
-- For those who have not been able to mine iron/are afraid of the first mining trip.
-- Making steel from tin is deliberately laborious.
core.register_craft({
output = "default:steel_ingot",
type = "shapeless",
recipe = {
s_tin,s_tin,s_tin,s_tin,s_tin,s_tin,"default:stone","default:stone","default:stone",
}
})
if minetest.get_modpath("protector") then
local dstone = "default:desert_stone"
minetest.register_craftitem("tincraft:softlock", {
description = "Malleable Lock",
inventory_image = "protector_logo.png^[colorize:blue:60"
})
core.register_craft({
output = "tincraft:softlock",
type = "cooking",
cooktime = 20,
recipe = "tincraft:strong_tin"
})
})
if minetest.get_modpath("protector") then
core.register_craft({
output = "protector:protect2",
recipe = {
@ -29,14 +57,16 @@ if minetest.get_modpath("protector") then
}
})
minetest.register_craftitem("tincraft:softlock", {
description = "Malleable Lock",
inventory_image = "protector_logo.png^[colorize:blue:60"
end
if minetest.get_modpath("inbox") then
core.register_craft({
output = "inbox:empty",
recipe = {
{"",s_tin,""},
{s_tin,"",s_tin},
{s_tin,s_tin,s_tin},
}
})
end
minetest.register_craftitem("tincraft:strong_tin", {
description = "Strengthened tin",
inventory_image = "moreores_tin_ingot.png^[colorize:yellow:30"
})