Go to file
2020-06-16 07:47:44 +02:00
.github/workflows basic skeleton 2020-06-14 20:14:52 +02:00
textures ui fixes 2020-06-14 20:54:31 +02:00
.luacheckrc basic skeleton 2020-06-14 20:14:52 +02:00
common.lua basic skeleton 2020-06-14 20:14:52 +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 todo notes / fixed typos 2020-06-16 07:47:44 +02:00
formspec.lua ui fixes 2020-06-14 20:54:31 +02:00
init.lua working get/set node 2020-06-15 08:38:49 +02:00
license.txt basic skeleton 2020-06-14 20:14:52 +02:00
mod.conf optional default 2020-06-14 20:55:22 +02:00
node.lua optional default 2020-06-14 20:55:22 +02:00
readme.md todo notes / fixed typos 2020-06-16 07:47:44 +02:00

Minetest digibuilder

State: WIP

TODO

  • ratelimiting of setnode operation (2 ops/second)
  • after_place_node(pos, placer, itemstack, pointed_thing) compat (digtron mod?)
  • area display on punch (like in the jumpdrive/protector mod)

further issues:

  • Storage of read schematics/buildings

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