Initial commit; register grinding of wheat seed to flour using technic

master
ademant 2018-10-01 15:03:02 +02:00
commit 9384751bdf
3 changed files with 29 additions and 0 deletions

7
craft.lua Normal file
View File

@ -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

3
depends.txt Normal file
View File

@ -0,0 +1,3 @@
default
farming
technic?

19
init.lua Normal file
View File

@ -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 ")