aboutsummaryrefslogtreecommitdiff
path: root/games/minimal/mods
diff options
context:
space:
mode:
authorParamat <paramat@users.noreply.github.com>2018-07-16 04:57:44 +0100
committerGitHub <noreply@github.com>2018-07-16 04:57:44 +0100
commit1aaee5b30d2c28e3256a0c8c3fc3784af91fb21b (patch)
tree056ee1acd614114605d1375a17dc1647f59cc847 /games/minimal/mods
parentca8ec46843da054e656d2f63b23d0b1695c023da (diff)
downloadminetest-1aaee5b30d2c28e3256a0c8c3fc3784af91fb21b.tar.gz
minetest-1aaee5b30d2c28e3256a0c8c3fc3784af91fb21b.tar.bz2
minetest-1aaee5b30d2c28e3256a0c8c3fc3784af91fb21b.zip
Lua_api.txt: Various minor improvements (#7560)
Add missing section title for 'Node paramtypes'. Clarify documentation for schematic Y-slice table. Document that schematic Y-slice behaviour does not invert for ceiling schematic decorations.
Diffstat (limited to 'games/minimal/mods')
0 files changed, 0 insertions, 0 deletions
ains_luaautomation/init.lua -- Lua automation features for advtrains -- Uses global table 'atlatc' (AdvTrains_LuaATC) -- Boilerplate to support localized strings if intllib mod is installed. if minetest.get_modpath("intllib") then atltrans = intllib.Getter() else atltrans = function(s,a,...)a={a,...}return s:gsub("@(%d+)",function(n)return a[tonumber(n)]end)end end --Privilege --Only trusted players should be enabled to build stuff which can break the server. atlatc = { envs = {}} minetest.register_privilege("atlatc", { description = "Player can place and modify LUA ATC components. Grant with care! Allows to execute bad LUA code.", give_to_singleplayer = false, default= false }) --assertt helper. error if a variable is not of a type function assertt(var, typ) if type(var)~=typ then error("Assertion failed, variable has to be of type "..typ) end end local mp=minetest.get_modpath("advtrains_luaautomation") if not mp then error("Mod name error: Mod folder is not named 'advtrains_luaautomation'!") end dofile(mp.."/environment.lua") dofile(mp.."/interrupt.lua") dofile(mp.."/active_common.lua") dofile(mp.."/atc_rail.lua") dofile(mp.."/operation_panel.lua") dofile(mp.."/pcnaming.lua") if mesecon then dofile(mp.."/p_mesecon_iface.lua") end