Go to file
2020-06-16 08:44:06 +02:00
.github/workflows basic skeleton 2020-06-14 20:14:52 +02:00
examples fix line substring 2020-06-16 08:44:06 +02:00
textures marker display 2020-06-16 08:19:44 +02:00
.luacheckrc add examples 2020-06-16 08:40:07 +02:00
digiline_rules.lua working get/set node 2020-06-15 08:38:49 +02:00
digiline_validate_pos.lua working get/set node 2020-06-15 08:38:49 +02:00
digiline.lua restrict placement of "complex" nodes with "after_place_node" function 2020-06-16 08:15:11 +02:00
formspec.lua ui fixes 2020-06-14 20:54:31 +02:00
init.lua cleanup 2020-06-16 08:19:57 +02:00
license.txt basic skeleton 2020-06-14 20:14:52 +02:00
marker.lua marker display 2020-06-16 08:19:44 +02:00
mod.conf optional default 2020-06-14 20:55:22 +02:00
node.lua marker display 2020-06-16 08:19:44 +02:00
readme.md add examples 2020-06-16 08:40:07 +02:00

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

  • creative mode
  • after_place_node(pos, placer, itemstack, pointed_thing) compat (digtron mod?)

further issues:

  • Storage of read schematics/buildings

License

MIT