e1103a07e4
modify the builtin `falling_node` entity to make it possible for mods to register callbacks to be called when they land and turn into a node. also register such a callback that checks if the landed node has an entry `after_landing`, and if so calls that.
27 lines
568 B
Lua
27 lines
568 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("event")
|
|
|
|
load_file("util_table")
|
|
load_file("util_string")
|
|
load_file("util_debug")
|
|
load_file("util_random")
|
|
load_file("util_vector")
|
|
|
|
load_file("util_node")
|
|
load_file("util_item")
|
|
|
|
load_file("wrappers")
|
|
|
|
load_file("random_tick")
|
|
load_file("increasing_abm")
|
|
load_file("loose_node")
|
|
load_file("fall_fix")
|
|
|
|
load_file("cleanup")
|