signs_bot-cd2025/init.lua

81 lines
1.9 KiB
Lua
Raw Normal View History

2019-03-23 21:15:13 +01:00
--[[
Signs Bot
=========
2023-06-27 21:23:05 +02:00
Copyright (C) 2019-2023 Joachim Stolberg
2019-03-23 21:15:13 +01:00
2019-08-22 20:51:29 +02:00
GPL v3
2019-03-23 21:15:13 +01:00
See LICENSE.txt for more information
2019-03-23 21:15:13 +01:00
A robot controlled by signs
]]--
signs_bot = {}
2020-04-26 14:10:03 +02:00
-- Version for compatibility checks, see readme.md/history
2023-06-27 21:23:05 +02:00
signs_bot.version = 1.13
2020-04-26 14:10:03 +02:00
-- Test for MT 5.4 new string mode
signs_bot.CLIP = minetest.features.use_texture_alpha_string_modes and "clip" or true
2021-08-01 10:31:31 +02: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-01-30 15:08:35 +01:00
end
if tubelib2.version < 1.9 then
error("[signs_bot] Signs Bot requires tubelib2 version 1.9 or newer!")
2021-04-30 18:58:15 +02:00
end
if minetest.global_exists("minecart") and minecart.version < 2.0 then
error("[signs_bot] Signs Bot requires minecart version 2.0 or newer!")
2020-04-26 14:10:03 +02:00
end
-- Load support for I18n.
signs_bot.S = minetest.get_translator("signs_bot")
2019-03-23 21:15:13 +01:00
local MP = minetest.get_modpath("signs_bot")
dofile(MP.."/doc.lua")
2019-10-11 20:12:07 +02:00
dofile(MP.."/random.lua")
2019-03-23 21:15:13 +01:00
dofile(MP.."/lib.lua")
dofile(MP.."/basis.lua")
2019-03-23 21:15:13 +01:00
dofile(MP.."/robot.lua")
dofile(MP.."/signs.lua")
2019-03-23 21:15:13 +01:00
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")
2020-03-27 18:29:40 +01:00
dofile(MP.."/cmd_flowers.lua")
dofile(MP.."/cmd_soup.lua")
2021-08-22 20:20:10 +02:00
dofile(MP.."/cmd_trees.lua")
dofile(MP.."/signal.lua")
dofile(MP.."/extender.lua")
dofile(MP.."/changer.lua")
2019-03-28 22:22:24 +01:00
dofile(MP.."/bot_flap.lua")
2019-04-12 22:32:40 +02:00
dofile(MP.."/duplicator.lua")
dofile(MP.."/nodes.lua")
dofile(MP.."/bot_sensor.lua")
dofile(MP.."/node_sensor.lua")
dofile(MP.."/crop_sensor.lua")
2021-12-30 10:40:35 +01:00
if minetest.global_exists("minecart") then
dofile(MP.."/cart_sensor.lua")
end
dofile(MP.."/chest.lua")
dofile(MP.."/legacy.lua")
dofile(MP.."/techage.lua")
dofile(MP.."/timer.lua")
dofile(MP.."/delayer.lua")
2019-07-13 15:04:31 +02:00
dofile(MP.."/logic_and.lua")
dofile(MP.."/compost.lua")
2023-08-01 20:31:12 +02:00
dofile(MP.."/manual.lua")
dofile(MP.."/tool.lua")
2023-07-28 21:52:06 +02:00