From 08b09aab94471133a80fb8bc984f4f0689350959 Mon Sep 17 00:00:00 2001
From: Cristiano Magro <cristiano.magro@vola.it>
Date: Sun, 11 Oct 2020 17:16:52 +0200
Subject: [PATCH] mege treetrap e chainsaw

---
 technic_chests/mithril_chest.lua |   51 ++++++++++++++++++++++++++++++---------------------
 1 files changed, 30 insertions(+), 21 deletions(-)

diff --git a/technic_chests/mithril_chest.lua b/technic_chests/mithril_chest.lua
index 4c8b0c7..40ea95c 100644
--- a/technic_chests/mithril_chest.lua
+++ b/technic_chests/mithril_chest.lua
@@ -1,38 +1,47 @@
-minetest.register_craft({
-	output = 'technic:mithril_chest 1',
-	recipe = {
-		{'moreores:mithril_ingot','moreores:mithril_ingot','moreores:mithril_ingot'},
-		{'moreores:mithril_ingot','technic:gold_chest','moreores:mithril_ingot'},
-		{'moreores:mithril_ingot','moreores:mithril_ingot','moreores:mithril_ingot'},
-	}
-})
+if minetest.get_modpath("moreores") then
+	minetest.register_craft({
+		output = 'technic:mithril_chest 1',
+		recipe = {
+			{'moreores:mithril_ingot','moreores:mithril_ingot','moreores:mithril_ingot'},
+			{'moreores:mithril_ingot','technic:gold_chest','moreores:mithril_ingot'},
+			{'moreores:mithril_ingot','moreores:mithril_ingot','moreores:mithril_ingot'},
+		}
+	})
+
+	minetest.register_craft({
+		output = 'technic:mithril_locked_chest 1',
+		recipe = {
+			{'moreores:mithril_ingot','moreores:mithril_ingot','moreores:mithril_ingot'},
+			{'moreores:mithril_ingot','technic:gold_locked_chest','moreores:mithril_ingot'},
+			{'moreores:mithril_ingot','moreores:mithril_ingot','moreores:mithril_ingot'},
+		}
+	})
+end
 
 minetest.register_craft({
 	output = 'technic:mithril_locked_chest 1',
+	type = "shapeless",
 	recipe = {
-		{'moreores:mithril_ingot','moreores:mithril_ingot','moreores:mithril_ingot'},
-		{'moreores:mithril_ingot','technic:gold_locked_chest','moreores:mithril_ingot'},
-		{'moreores:mithril_ingot','moreores:mithril_ingot','moreores:mithril_ingot'},
-	}
-})
-
-minetest.register_craft({
-	output = 'technic:mithril_locked_chest 1',
-	recipe = {
-		{'default:steel_ingot'},
-		{'technic:mithril_chest'},
+		'basic_materials:padlock',
+		'technic:mithril_chest',
 	}
 })
 
 technic.chests:register("Mithril", {
-	width = 13,
+	width = 15,
+	height = 6,
+	sort = true,
+	autosort = true,
 	infotext = false,
 	color = false,
 	locked = false,
 })
 
 technic.chests:register("Mithril", {
-	width = 13,
+	width = 15,
+	height = 6,
+	sort = true,
+	autosort = true,
 	infotext = false,
 	color = false,
 	locked = true,

--
Gitblit v1.8.0