blockgame/mods/bg_api/init.lua
trans_soup 9585a7a4b3 add random ticks.
every server step, mapblocks near online players will have randomly
selected nodes within them receive a "random tick", the behaviour of
which is determined in node definitions.
2023-10-13 13:22:56 +02:00

19 lines
432 B
Lua

local load_file = function (filename)
return dofile(minetest.get_modpath(minetest.get_current_modname()) .. "/" .. filename .. ".lua")
end
rawset(_G, "load_file", load_file)
local blockgame = {}
rawset(_G, "blockgame", blockgame)
load_file("util_table")
load_file("util_stringify")
load_file("util_debug")
load_file("util_random")
load_file("util_vector")
load_file("util_node")
load_file("wrappers")
load_file("random_tick")