From 467627c352e6dbc163d032f33988584cfcdb4a02 Mon Sep 17 00:00:00 2001 From: "Tai @ Flex" Date: Thu, 25 Aug 2016 16:48:36 +0100 Subject: [PATCH] move to its own mod --- tincraft/depends.txt | 2 ++ tincraft/init.lua | 42 ++++++++++++++++++++++++++++++++++++++++++ tincraft/mod.conf | 1 + 3 files changed, 45 insertions(+) create mode 100644 tincraft/depends.txt create mode 100644 tincraft/init.lua create mode 100644 tincraft/mod.conf diff --git a/tincraft/depends.txt b/tincraft/depends.txt new file mode 100644 index 0000000..87ab2ff --- /dev/null +++ b/tincraft/depends.txt @@ -0,0 +1,2 @@ +default +moreores diff --git a/tincraft/init.lua b/tincraft/init.lua new file mode 100644 index 0000000..ea05d10 --- /dev/null +++ b/tincraft/init.lua @@ -0,0 +1,42 @@ +--some crafts to make tin less useless. + +local tin = "moreores:tin_ingot" +local dstone = "default:desert_stone" + +core.register_craft({ + output = "tincraft:strong_tin", + recipe = { + {tin,tin,tin}, + {tin,"default:coal_lump",tin}, + {tin,tin,tin}, + } +}) + +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 = { + {dstone,dstone,dstone}, + {dstone,"tincraft:softlock",dstone}, + {dstone,dstone,dstone}, + } + }) + + minetest.register_craftitem("tincraft:softlock", { + description = "Malleable Lock", + inventory_image = "protector_logo.png^[colorize:blue:60" + }) +end + +minetest.register_craftitem("tincraft:strong_tin", { + description = "Strengthened tin", + inventory_image = "moreores_tin_ingot.png^[colorize:yellow:30" +}) + diff --git a/tincraft/mod.conf b/tincraft/mod.conf new file mode 100644 index 0000000..f3ce15f --- /dev/null +++ b/tincraft/mod.conf @@ -0,0 +1 @@ +name = tincraft