Support for Signs_bot added.
This commit is contained in:
parent
a70d4065ed
commit
857825aaf5
@ -1,3 +1,4 @@
|
||||
Support for Signs_bot added.
|
||||
Support for mods hunger, hunger_ng and diet added.
|
||||
Code reworked.
|
||||
Sea anemone added.
|
||||
|
10
alga.lua
10
alga.lua
@ -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.")
|
||||
|
2
mod.conf
2
mod.conf
@ -1,3 +1,3 @@
|
||||
name = aqua_farming
|
||||
depends = default
|
||||
optional_depends = hunger_ng, hunger, diet
|
||||
optional_depends = hunger_ng, hunger, diet, signs_bot
|
||||
|
@ -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.")
|
||||
|
@ -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.")
|
||||
|
@ -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.")
|
||||
|
Loading…
x
Reference in New Issue
Block a user