Giter Site home page Giter Site logo

find_nodes_in_area_cache's People

Watchers

 avatar  avatar

Forkers

ogelgames

find_nodes_in_area_cache's Issues

more potential caching

minetest_1        | 2020-06-22 08:53:41: ERROR[CurlFetch]: http://mapserver:8080/api/minetest not found (Couldn't resolve host name) (response code 0)
minetest_1        | [cache] non-cached call for nodenames {
minetest_1        | 	"default:lava_source",
minetest_1        | 	"default:lava_flowing",
minetest_1        | 	"default:water_source",
minetest_1        | 	"default:ice",
minetest_1        | 	"default:desert_sand",
minetest_1        | 	"default:sand",
minetest_1        | 	"default:jungletree",
minetest_1        | 	"group:leaves",
minetest_1        | 	"default:snowblock"
minetest_1        | }
minetest_1        | [cache] non-cached call for nodenames {
minetest_1        | 	"default:lava_source",
minetest_1        | 	"default:lava_flowing",
minetest_1        | 	"default:water_source",
minetest_1        | 	"default:ice",
minetest_1        | 	"default:desert_sand",
minetest_1        | 	"default:sand",
minetest_1        | 	"default:jungletree",
minetest_1        | 	"group:leaves",
minetest_1        | 	"default:snowblock"
minetest_1        | }
minetest_1        | [cache] non-cached call for nodenames {
minetest_1        | 	"fire:basic_flame",
minetest_1        | 	"fire:permanent_flame"
minetest_1        | }
minetest_1        | 2020-06-22 08:53:43: ERROR[CurlFetch]: http://mapserver:8080/api/minetest not found (Couldn't resolve host name) (response code 0)
minetest_1        | [cache] non-cached call for nodenames {
minetest_1        | 	"default:lava_source",
minetest_1        | 	"default:lava_flowing",
minetest_1        | 	"default:water_source",
minetest_1        | 	"default:ice",
minetest_1        | 	"default:desert_sand",
minetest_1        | 	"default:sand",
minetest_1        | 	"default:jungletree",
minetest_1        | 	"group:leaves",
minetest_1        | 	"default:snowblock"
minetest_1        | }
minetest_1        | 2020-06-22 08:53:44: ERROR[CurlFetch]: http://beerchat-proxy:8080 not found (Couldn't resolve host name) (response code 0)
minetest_1        | [cache] non-cached call for nodenames {
minetest_1        | 	"default:water_flowing",
minetest_1        | 	"default:river_water_flowing"
minetest_1        | }
minetest_1        | 2020-06-22 08:53:44: ERROR[Server]: [beerchat] http request to http://beerchat-proxy:8080 failed with code 0
minetest_1        | [cache] non-cached call for nodenames {
minetest_1        | 	"default:lava_source",
minetest_1        | 	"default:lava_flowing",
minetest_1        | 	"default:water_source",
minetest_1        | 	"default:ice",
minetest_1        | 	"default:desert_sand",
minetest_1        | 	"default:sand",
minetest_1        | 	"default:jungletree",
minetest_1        | 	"group:leaves",
minetest_1        | 	"default:snowblock"
minetest_1        | }
minetest_1        | [cache] cached call for nodenames {
minetest_1        | 	"protector:protect",
minetest_1        | 	"protector:protect2"
minetest_1        | }

support for the advtrains mod

        local nodes = minetest.find_nodes_in_area(
                {x = pos.x - npr_r, y = pos.y - npr_vr, z = pos.z - npr_r},
                {x = pos.x + npr_r, y = pos.y + npr_vrd, z = pos.z + npr_r},
                {"group:advtrains_track"})

Doesn't support grouped option (Minetest 5.4.0+)

minetest.find_nodes_in_area(pos1, pos2, nodenames, [grouped])

  • pos1 and pos2 are the min and max positions of the area to search.
  • nodenames: e.g. {"ignore", "group:tree"} or "default:dirt"
  • If grouped is true the return value is a table indexed by node name which contains lists of positions.
  • If grouped is false or absent the return values are as follows:
    • first value: Table with all node positions
    • second value: Table with the count of each node with the node name as index

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.