From e0ea979171107eabc314f2a229f5e1d597867061 Mon Sep 17 00:00:00 2001 From: h-v-smacker Date: Wed, 14 Feb 2018 00:17:25 +0300 Subject: cornmeal, corn bread and flour from barley --- technic/machines/register/grinder_recipes.lua | 24 ++++++++++++++++++++++ technic/textures/technic_cornbread.png | Bin 0 -> 441 bytes technic/textures/technic_cornmeal.png | Bin 0 -> 226 bytes technic/textures/technicx32/technic_cornbread.png | Bin 0 -> 13813 bytes 4 files changed, 24 insertions(+) create mode 100644 technic/textures/technic_cornbread.png create mode 100644 technic/textures/technic_cornmeal.png create mode 100644 technic/textures/technicx32/technic_cornbread.png diff --git a/technic/machines/register/grinder_recipes.lua b/technic/machines/register/grinder_recipes.lua index fa55e7a..6a82514 100644 --- a/technic/machines/register/grinder_recipes.lua +++ b/technic/machines/register/grinder_recipes.lua @@ -38,6 +38,30 @@ minetest.clear_craft({ if minetest.get_modpath("farming") then table.insert(recipes, {"farming:seed_wheat", "farming:flour 1"}) + table.insert(recipes, {"farming:seed_barley", "farming:flour 1"}) + + -- added by dhausmig + if minetest.registered_items["farming:corn"] ~= nil then + minetest.register_craftitem("technic:cornmeal", { + description = S("Corn Meal"), + inventory_image = "technic_cornmeal.png", + }) + minetest.register_craftitem("technic:cornbread", { + description = S("Cornbread"), + inventory_image = "technic_cornbread.png", + on_use = minetest.item_eat(8), + }) + + minetest.register_craft({ + type = "cooking", + cooktime = 10, + output = "technic:cornbread", + recipe = "technic:cornmeal" + }) + + table.insert(recipes, {"farming:corn", "technic:cornmeal 2"}) + -- end of dhausmig's addition + end end if minetest.get_modpath("moreores") then diff --git a/technic/textures/technic_cornbread.png b/technic/textures/technic_cornbread.png new file mode 100644 index 0000000..32674f2 Binary files /dev/null and b/technic/textures/technic_cornbread.png differ diff --git a/technic/textures/technic_cornmeal.png b/technic/textures/technic_cornmeal.png new file mode 100644 index 0000000..e17bb69 Binary files /dev/null and b/technic/textures/technic_cornmeal.png differ diff --git a/technic/textures/technicx32/technic_cornbread.png b/technic/textures/technicx32/technic_cornbread.png new file mode 100644 index 0000000..05e0416 Binary files /dev/null and b/technic/textures/technicx32/technic_cornbread.png differ -- cgit v1.2.3