mirror of
https://git.minetest.org/BuckarooBanzay/digibuilder.git
synced 2024-12-12 02:53:19 +01:00
.github/workflows | ||
examples | ||
textures | ||
.luacheckrc | ||
digiline_rules.lua | ||
digiline_validate_pos.lua | ||
digiline.lua | ||
formspec.lua | ||
init.lua | ||
license.txt | ||
marker.lua | ||
mod.conf | ||
node.lua | ||
readme.md | ||
recipe.lua |
Minetest digibuilder
Build nodes with digiline commands
State: WIP
Settings
- digibuilder.max_radius max radius
- digibuilder.setnode_delay delay between setnode calls in seconds
Commands
Get node
digiline_send("digibuilder", {
command = "getnode",
pos = { x=1, y=0, z=0 }
})
if event.type == "digiline" and event.channel == "digibuilder" then
-- { error = true, message = "..." }
-- { pos = { x=1, y=0, z=0 }, name = "default:stone" }
-- { pos = { x=1, y=0, z=0 }, name = "stairs:stair_stone", param2 = 3 }
end
Set node
digiline_send("digibuilder", {
command = "setnode",
pos = { x=1, y=0, z=0 },
param2 = 3,
name = "stairs:stair_stone"
})
if event.type == "digiline" and event.channel == "digibuilder" then
-- { error = true, message = "..." }
-- { pos = { x=1, y=0, z=0 }, success = true, name = "default:stone" }
-- { pos = { x=1, y=0, z=0 }, success = true, name = "stairs:stair_stone", param2 = 3 }
end
Examples
For code examples for the luacontroller
see the "examples" directory
Open issues
after_place_node(pos, placer, itemstack, pointed_thing)
compat (digtron mod?)- Storage of read schematics/buildings
License
MIT