Add core.find_nodes_with_meta() script API

This commit is contained in:
kwolekr
2015-05-05 14:30:46 -04:00
parent b45df9d6a7
commit b785577f03
7 changed files with 89 additions and 20 deletions

View File

@@ -64,7 +64,6 @@ class ModApiEnvMod : public ModApiBase {
// pos = {x=num, y=num, z=num}
static int l_punch_node(lua_State *L);
// get_node_max_level(pos)
// pos = {x=num, y=num, z=num}
static int l_get_node_max_level(lua_State *L);
@@ -81,6 +80,9 @@ class ModApiEnvMod : public ModApiBase {
// pos = {x=num, y=num, z=num}
static int l_add_node_level(lua_State *L);
// find_nodes_with_meta(pos1, pos2)
static int l_find_nodes_with_meta(lua_State *L);
// get_meta(pos)
static int l_get_meta(lua_State *L);