Support for Signs_bot added.

This commit is contained in:
A.C.M 2020-03-25 04:44:51 +01:00
parent a70d4065ed
commit 857825aaf5
6 changed files with 39 additions and 1 deletions

View File

@ -1,3 +1,4 @@
Support for Signs_bot added.
Support for mods hunger, hunger_ng and diet added.
Code reworked.
Sea anemone added.

View File

@ -36,4 +36,14 @@ minetest.register_craftitem(name .. "_item", {
dofile(aqua_farming.modpath .. "/mapgen_" .. name:split(":")[2] .. ".lua")
if(signs_bot) then
local fs = signs_bot.register_farming_seed
local fc = signs_bot.register_farming_crop
fs(name .. "_seed", name .. "_1")
fc(name .. "_" .. step, name .. "_item", name .. "_seed")
end
aqua_farming.report(" module " .. name .. ".lua loaded.")

View File

@ -1,3 +1,3 @@
name = aqua_farming
depends = default
optional_depends = hunger_ng, hunger, diet
optional_depends = hunger_ng, hunger, diet, signs_bot

View File

@ -38,4 +38,13 @@ aqua_farming.register_plant(def)
dofile(aqua_farming.modpath .. "/mapgen_" .. name:split(":")[2] .. ".lua")
if(signs_bot) then
local fs = signs_bot.register_farming_seed
local fc = signs_bot.register_farming_crop
fs(name .. "_seed", name .. "_1")
fc(name .. "_" .. step, name .. "_item", name .. "_seed")
end
aqua_farming.report(" module " .. name .. ".lua loaded.")

View File

@ -35,4 +35,13 @@ minetest.register_craftitem(name .. "_item", {
dofile(aqua_farming.modpath .. "/mapgen_" .. name:split(":")[2] .. ".lua")
if(signs_bot) then
local fs = signs_bot.register_farming_seed
local fc = signs_bot.register_farming_crop
fs(name .. "_seed", name .. "_1")
fc(name .. "_" .. step, name .. "_item", name .. "_seed")
end
aqua_farming.report(" module " .. name .. ".lua loaded.")

View File

@ -34,4 +34,13 @@ minetest.register_craftitem(name .. "_item", {
dofile(aqua_farming.modpath .. "/mapgen_" .. name:split(":")[2] .. ".lua")
if(signs_bot) then
local fs = signs_bot.register_farming_seed
local fc = signs_bot.register_farming_crop
fs(name .. "_seed", name .. "_1")
fc(name .. "_" .. step, name .. "_item", name .. "_seed")
end
aqua_farming.report(" module " .. name .. ".lua loaded.")