Minetest-Tubelib/init.lua

55 lines
1.2 KiB
Lua
Raw Normal View History

2017-09-07 13:27:30 -07:00
--[[
Tube Library
============
Copyright (C) 2017 Joachim Stolberg
LGPLv2.1+
See LICENSE.txt for more information
History:
2017-09-08 11:09:33 -07:00
2017-09-08 v0.01 first version
2017-09-12 10:15:14 -07:00
2017-09-12 v0.02 bugfix in tubelib.get_pos() and others
2017-09-07 13:27:30 -07:00
]]--
2017-09-09 09:17:31 -07:00
2017-09-07 13:27:30 -07:00
tubelib = {
2017-09-09 09:17:31 -07:00
NodeDef = {}, -- node registarion info
2017-09-08 11:09:33 -07:00
}
2017-09-07 13:27:30 -07:00
tubelib.debug = true
2017-09-09 12:57:22 -07:00
-- used by tubes to contact
2017-09-07 13:27:30 -07:00
tubelib.knownNodes = {
["tubelib:tube1"] = true,
["tubelib:tube2"] = true,
["tubelib:tube3"] = true,
["tubelib:tube4"] = true,
["tubelib:tube5"] = true,
["tubelib:tube6"] = true,
["default:chest_locked"] = true,
["default:chest"] = true,
2017-09-09 12:57:22 -07:00
["default:furnace"] = true,
["default:furnace_active"] = true,
2017-09-07 13:27:30 -07:00
}
2017-09-09 12:57:22 -07:00
-- used by push_item/pull_item
2017-09-07 13:27:30 -07:00
tubelib.legacyNodes = {
["default:chest_locked"] = true,
["default:chest"] = true,
2017-09-09 12:57:22 -07:00
["default:furnace"] = true,
["default:furnace_active"] = true,
2017-09-07 13:27:30 -07:00
}
2017-09-08 11:09:33 -07:00
dofile(minetest.get_modpath("tubelib") .. "/command.lua")
2017-09-09 09:17:31 -07:00
dofile(minetest.get_modpath("tubelib") .. "/tubes.lua")
2017-09-08 11:09:33 -07:00
dofile(minetest.get_modpath("tubelib") .. "/pusher.lua")
2017-09-08 12:59:48 -07:00
dofile(minetest.get_modpath("tubelib") .. "/distributor.lua")
2017-09-09 09:17:31 -07:00
dofile(minetest.get_modpath("tubelib") .. "/button.lua")
dofile(minetest.get_modpath("tubelib") .. "/lamp.lua")