Go to file
2021-04-19 17:05:06 +02:00
.github/workflows basic skeleton 2020-06-14 20:14:52 +02:00
examples working pattern example 2020-06-16 19:46: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
create_fake_player.lua create a fake user for "after_place_node" / various fixes 2021-02-18 14:00:58 +01: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 use item.on_place 2021-04-19 17:05:06 +02:00
formspec.lua ui fixes 2020-06-14 20:54:31 +02:00
init.lua create a fake user for "after_place_node" / various fixes 2021-02-18 14:00:58 +01: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 create a fake user for "after_place_node" / various fixes 2021-02-18 14:00:58 +01:00
readme.md update readme 2021-02-18 14:12:45 +01:00
recipe.lua create a fake user for "after_place_node" / various fixes 2021-02-18 14:00:58 +01:00
screenshot.png add screenshot / license 2021-02-18 14:07:10 +01:00

Minetest digibuilder

Build nodes with digiline commands

ContentDB

Overview

Allows the mesecons luacontroller to build things to the world

Settings

  • digibuilder.max_radius max radius, default: 15 nodes
  • digibuilder.setnode_delay delay between setnode calls in seconds, default: 0.5

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

License

  • Code: MIT
  • Textures: CC-BY-SA 3.0