fix issues with doc mod
This commit is contained in:
parent
22016e6d8c
commit
932463092b
@ -53,7 +53,7 @@ local function takeitem(mem)
|
||||
end
|
||||
|
||||
|
||||
if minetest.global_exists("signs_bot") then
|
||||
if minetest.global_exists("compost") then
|
||||
|
||||
signs_bot.register_botcommand("add_compost", {
|
||||
mod = "compost",
|
||||
|
23
doc.lua
23
doc.lua
@ -140,18 +140,27 @@ local inventory_doc = table.concat({
|
||||
}, "\n")
|
||||
|
||||
|
||||
local sorting_data = {"start", "control", "sensor_doc", "tool", "invent",
|
||||
"box", "bot_flap", "duplicator",
|
||||
"bot_sensor", "node_sensor", "crop_sensor", "chest", "timer",
|
||||
"changer", "sensor_extender", "and", "delayer",
|
||||
"farming", "pattern", "copy3x3x3", "flowers", "aspen",
|
||||
"water", "soup",
|
||||
"sign_cmnd", "sign_right", "sign_left", "sign_take", "sign_add", "sign_stop", "sign_blank"}
|
||||
|
||||
if minetest.global_exists("minecart") then
|
||||
table.insert(sorting_data, "cart_sensor")
|
||||
table.insert(sorting_data, "sign_add_cart")
|
||||
table.insert(sorting_data, "sign_take_cart")
|
||||
end
|
||||
|
||||
doc.add_category("signs_bot",
|
||||
{
|
||||
name = S("Signs Bot"),
|
||||
description = S("A robot controlled by signs, used for automated work"),
|
||||
sorting = "custom",
|
||||
sorting_data = {"start", "control", "sensor_doc", "tool",
|
||||
"box", "bot_flap", "duplicator",
|
||||
"bot_sensor", "cart_sensor", "node_sensor", "crop_sensor", "chest", "timer",
|
||||
"changer", "sensor_extender",
|
||||
"farming", "pattern", "copy3x3x3",
|
||||
"sign_cmnd", "sign_right", "sign_left", "sign_take", "sign_add", "sign_stop", "sign_blank"},
|
||||
build_formspec = formspec,
|
||||
sorting_data = sorting_data,
|
||||
})
|
||||
|
||||
doc.add_entry("signs_bot", "start", {
|
||||
@ -174,7 +183,7 @@ doc.add_entry("signs_bot", "tool", {
|
||||
data = {text = tool_doc, image = "signs_bot_doc_image.png"},
|
||||
})
|
||||
|
||||
doc.add_entry("signs_bot", "tool", {
|
||||
doc.add_entry("signs_bot", "invent", {
|
||||
name = S("Bot inventory behavior"),
|
||||
data = {text = inventory_doc, image = "signs_bot_doc_image.png"},
|
||||
})
|
||||
|
2
mod.conf
2
mod.conf
@ -1,4 +1,4 @@
|
||||
name=signs_bot
|
||||
depends = default,farming,basic_materials,tubelib2
|
||||
optional_depends = node_io,techage,doc,minecart,bucket,fire,xdecor,ethereal
|
||||
optional_depends = node_io,techage,doc,minecart,bucket,fire,xdecor,ethereal,compost
|
||||
description = A robot controlled by signs
|
||||
|
Loading…
x
Reference in New Issue
Block a user