2020-05-31 23:31:18 +03:00
|
|
|
--[[
|
|
|
|
|
|
|
|
Signs Bot
|
|
|
|
=========
|
|
|
|
|
2021-05-14 19:50:16 +03:00
|
|
|
Copyright (C) 2019-2021 Joachim Stolberg
|
2020-05-31 23:31:18 +03:00
|
|
|
|
|
|
|
GPL v3
|
|
|
|
See LICENSE.txt for more information
|
|
|
|
|
|
|
|
A robot controlled by signs
|
|
|
|
|
|
|
|
]]--
|
|
|
|
|
|
|
|
signs_bot = {}
|
|
|
|
|
|
|
|
-- Version for compatibility checks, see readme.md/history
|
2021-09-03 20:32:06 +03:00
|
|
|
signs_bot.version = 1.09
|
2021-05-14 19:50:16 +03:00
|
|
|
|
|
|
|
-- Test for MT 5.4 new string mode
|
|
|
|
signs_bot.CLIP = minetest.features.use_texture_alpha_string_modes and "clip" or true
|
2020-05-31 23:31:18 +03:00
|
|
|
|
2021-08-01 12:00:22 +03:00
|
|
|
if minetest.global_exists("techage") and techage.version < 1.0 then
|
|
|
|
error("[signs_bot] Signs Bot requires techage version 1.0 or newer!")
|
2021-02-07 16:37:07 +03:00
|
|
|
end
|
|
|
|
|
|
|
|
if tubelib2.version < 1.9 then
|
|
|
|
error("[signs_bot] Signs Bot requires tubelib2 version 1.9 or newer!")
|
2020-05-31 23:31:18 +03:00
|
|
|
end
|
|
|
|
|
2021-05-14 19:50:16 +03:00
|
|
|
if minetest.global_exists("minecart") and minecart.version < 2.0 then
|
|
|
|
error("[signs_bot] Signs Bot requires minecart version 2.0 or newer!")
|
|
|
|
end
|
|
|
|
|
|
|
|
-- Load support for I18n.
|
2020-05-31 23:31:18 +03:00
|
|
|
signs_bot.S = minetest.get_translator("signs_bot")
|
2021-05-14 19:50:16 +03:00
|
|
|
|
2020-05-31 23:31:18 +03:00
|
|
|
local MP = minetest.get_modpath("signs_bot")
|
2021-05-14 19:50:16 +03:00
|
|
|
|
2020-05-31 23:31:18 +03:00
|
|
|
dofile(MP.."/doc.lua")
|
|
|
|
dofile(MP.."/random.lua")
|
|
|
|
dofile(MP.."/lib.lua")
|
|
|
|
dofile(MP.."/basis.lua")
|
|
|
|
dofile(MP.."/robot.lua")
|
|
|
|
dofile(MP.."/signs.lua")
|
|
|
|
|
|
|
|
dofile(MP.."/commands.lua")
|
|
|
|
dofile(MP.."/cmd_move.lua")
|
|
|
|
dofile(MP.."/cmd_item.lua")
|
|
|
|
dofile(MP.."/cmd_place.lua")
|
|
|
|
dofile(MP.."/cmd_sign.lua")
|
|
|
|
dofile(MP.."/cmd_pattern.lua")
|
|
|
|
dofile(MP.."/cmd_farming.lua")
|
|
|
|
dofile(MP.."/cmd_flowers.lua")
|
2021-09-03 20:32:06 +03:00
|
|
|
dofile(MP.."/cmd_soup.lua")
|
|
|
|
dofile(MP.."/cmd_trees.lua")
|
2020-05-31 23:31:18 +03:00
|
|
|
|
|
|
|
dofile(MP.."/signal.lua")
|
|
|
|
dofile(MP.."/extender.lua")
|
|
|
|
dofile(MP.."/changer.lua")
|
|
|
|
dofile(MP.."/bot_flap.lua")
|
|
|
|
|
|
|
|
dofile(MP.."/duplicator.lua")
|
|
|
|
dofile(MP.."/nodes.lua")
|
|
|
|
dofile(MP.."/bot_sensor.lua")
|
|
|
|
dofile(MP.."/node_sensor.lua")
|
|
|
|
dofile(MP.."/crop_sensor.lua")
|
2022-01-03 13:59:31 +03:00
|
|
|
if minetest.global_exists("minecart") then
|
|
|
|
dofile(MP.."/cart_sensor.lua")
|
|
|
|
end
|
2020-05-31 23:31:18 +03:00
|
|
|
dofile(MP.."/chest.lua")
|
|
|
|
dofile(MP.."/legacy.lua")
|
|
|
|
dofile(MP.."/techage.lua")
|
|
|
|
dofile(MP.."/timer.lua")
|
|
|
|
dofile(MP.."/delayer.lua")
|
|
|
|
dofile(MP.."/logic_and.lua")
|
2021-05-14 19:50:16 +03:00
|
|
|
dofile(MP.."/compost.lua")
|
2020-05-31 23:31:18 +03:00
|
|
|
|
|
|
|
dofile(MP.."/tool.lua")
|