Module is_buildable_to.lua

📑 Source

Checks whether a node or position is buildable to.

Usage

local buildable = is_buildable_to({x=0, y=10, z=0})
local buildable_node = is_buildable_to({name="default:dirt_with_grass"})

Functions


# returns... (thing)

Parameters

  • thing NodeOrPos A table representing either a node (with name) or a position {x, y, z}

Returns

    boolean True if the node is buildable_to, false if not