diff --git a/compost.lua b/compost.lua index 5cd198d..8141506 100644 --- a/compost.lua +++ b/compost.lua @@ -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", diff --git a/doc.lua b/doc.lua index 342a6c5..497ab88 100644 --- a/doc.lua +++ b/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"}, }) diff --git a/mod.conf b/mod.conf index d649484..2036465 100644 --- a/mod.conf +++ b/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