Go to file
2020-06-16 13:01:08 +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 only check buildable_to if not in creative 2020-06-16 13:01:08 +02:00
formspec.lua ui fixes 2020-06-14 20:54:31 +02:00
init.lua add recipe 2020-06-16 12:40:30 +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 add recipe 2020-06-16 12:40:30 +02:00
node.lua creative check 2020-06-16 09:00:56 +02:00
readme.md add recipe 2020-06-16 12:40:30 +02:00
recipe.lua add recipe 2020-06-16 12:40:30 +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

  • after_place_node(pos, placer, itemstack, pointed_thing) compat (digtron mod?)
  • Storage of read schematics/buildings

License

MIT