From 9384751bdf505ee0afcf71d6cdc0d5d3a7037956 Mon Sep 17 00:00:00 2001 From: ademant Date: Mon, 1 Oct 2018 15:03:02 +0200 Subject: [PATCH] Initial commit; register grinding of wheat seed to flour using technic --- craft.lua | 7 +++++++ depends.txt | 3 +++ init.lua | 19 +++++++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 craft.lua create mode 100644 depends.txt create mode 100644 init.lua diff --git a/craft.lua b/craft.lua new file mode 100644 index 0000000..fcd43f6 --- /dev/null +++ b/craft.lua @@ -0,0 +1,7 @@ +local S = farming.intllib +local modname=minetest.get_current_modname() + +-- define seed crafting +if (minetest.modpath("technic") and minetest.modpath("farming")) then + technic.register_grinder_recipe({input = {"farming:seed_wheat 3"},output={"farming:flour"}) +end diff --git a/depends.txt b/depends.txt new file mode 100644 index 0000000..9effa39 --- /dev/null +++ b/depends.txt @@ -0,0 +1,3 @@ +default +farming +technic? diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..918e356 --- /dev/null +++ b/init.lua @@ -0,0 +1,19 @@ +-- Global farming namespace + +farming_technic = {} +farming_technic.path = minetest.get_modpath("farming_technic") +farming_technic.config = minetest.get_mod_storage() + +local S = dofile(farming.path .. "/intllib.lua") +farming_technic.intllib = S + + +minetest.log("action", "[MOD]"..minetest.get_current_modname().." -- start loading from "..minetest.get_modpath(minetest.get_current_modname())) +-- Load files + + +dofile(farming_technic.path .. "/craft.lua") + + + +minetest.log("action", "[MOD]"..minetest.get_current_modname().." -- loaded ")