From f47da0c0453981929c1bde0eb47d86507c9305cd Mon Sep 17 00:00:00 2001
From: Gábriel <38207624+gabriel1379@users.noreply.github.com>
Date: Fri, 08 Mar 2024 18:44:13 +0100
Subject: [PATCH] Add grinding for pyrite from Everness mod (#633)

---
 technic/machines/register/grinder_recipes.lua |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/technic/machines/register/grinder_recipes.lua b/technic/machines/register/grinder_recipes.lua
index da90aad..df8061a 100644
--- a/technic/machines/register/grinder_recipes.lua
+++ b/technic/machines/register/grinder_recipes.lua
@@ -23,6 +23,8 @@
 	{"technic:sulfur_lump",        "technic:sulfur_dust 2"},
 	{"default:stone",              "technic:stone_dust"},
 	{"default:sand",               "technic:stone_dust"},
+	{"default:desert_sand",        "technic:stone_dust"},
+	{"default:silver_sand",        "technic:stone_dust"},
 
 	-- Other
 	{"default:cobble",           "default:gravel"},
@@ -30,6 +32,8 @@
 	{"default:sandstone",        "default:sand 2"}, -- reverse recipe can be found in the compressor
 	{"default:desert_sandstone", "default:desert_sand 2"}, -- reverse recipe can be found in the compressor
 	{"default:silver_sandstone", "default:silver_sand 2"}, -- reverse recipe can be found in the compressor
+
+	{"default:ice",              "default:snowblock"},
 }
 
 -- defuse the sandstone -> 4 sand recipe to avoid infinite sand bugs (also consult the inverse compressor recipe)
@@ -68,6 +72,10 @@
 
 if minetest.get_modpath("homedecor") then
 	table.insert(recipes, {"home_decor:brass_ingot", "technic:brass_dust 1"})
+end
+
+if minetest.get_modpath("everness") then
+	table.insert(recipes, {"everness:pyrite_lump",  "technic:pyrite_dust 2"})
 end
 
 for _, data in pairs(recipes) do
@@ -118,6 +126,9 @@
 	register_dust("Kalite",          nil)
 	register_dust("Talinite",        "glooptest:talinite_ingot")
 end
+if minetest.get_modpath("everness") then
+	register_dust("Pyrite",          "everness:pyrite_ingot")
+end
 
 for p = 0, 35 do
 	local nici = (p ~= 0 and p ~= 7 and p ~= 35) and 1 or nil

--
Gitblit v1.8.0