From 49c3b1c26d23f3719db1c2253fc1fb2206e37119 Mon Sep 17 00:00:00 2001 From: Luke aka SwissalpS <161979+SwissalpS@users.noreply.github.com> Date: Sun, 29 Dec 2024 18:29:21 +0100 Subject: [PATCH 1/2] Add [digibuilder] support (#32) --- init.lua | 1 + mod.conf | 1 + nodes/digibuilder.lua | 13 +++++++++++++ 3 files changed, 15 insertions(+) create mode 100644 nodes/digibuilder.lua diff --git a/init.lua b/init.lua index b734245..0ee9d29 100644 --- a/init.lua +++ b/init.lua @@ -31,6 +31,7 @@ local mods = { "christmas", "connected_chests", "default", + "digibuilder", "digilines", "digiscreen", "digistuff", diff --git a/mod.conf b/mod.conf index ff92298..ddbf7c5 100644 --- a/mod.conf +++ b/mod.conf @@ -11,6 +11,7 @@ optional_depends = """ christmas, default, digtron, + digibuilder, digilines, digiscreen, digistuff, diff --git a/nodes/digibuilder.lua b/nodes/digibuilder.lua new file mode 100644 index 0000000..bd82ec7 --- /dev/null +++ b/nodes/digibuilder.lua @@ -0,0 +1,13 @@ + +-- Register wrench support for the digibuilder mod + +wrench.register_node("digibuilder:digibuilder", { + lists = { "main" }, + metas = { + channel = wrench.META_TYPE_STRING, + formspec = wrench.META_TYPE_IGNORE, + infotext = wrench.META_TYPE_IGNORE, + owner = wrench.META_TYPE_STRING, + }, +}) + From 359650b82154c59c47de797ee6b0ad68fad5583a Mon Sep 17 00:00:00 2001 From: Luke aka SwissalpS <161979+SwissalpS@users.noreply.github.com> Date: Sun, 29 Dec 2024 18:31:26 +0100 Subject: [PATCH 2/2] Add [soundblock] support (#33) --- init.lua | 1 + mod.conf | 1 + nodes/soundblock.lua | 17 +++++++++++++++++ 3 files changed, 19 insertions(+) create mode 100644 nodes/soundblock.lua diff --git a/init.lua b/init.lua index 0ee9d29..fc18dac 100644 --- a/init.lua +++ b/init.lua @@ -50,6 +50,7 @@ local mods = { "powerbanks", "protector", "signs_lib", + "soundblock", "technic", "technic_chests", "technic_cnc", diff --git a/mod.conf b/mod.conf index ddbf7c5..cf9a940 100644 --- a/mod.conf +++ b/mod.conf @@ -29,6 +29,7 @@ optional_depends = """ powerbanks, protector, signs_lib, + soundblock, technic, technic_chests, technic_cnc, diff --git a/nodes/soundblock.lua b/nodes/soundblock.lua new file mode 100644 index 0000000..769ebab --- /dev/null +++ b/nodes/soundblock.lua @@ -0,0 +1,17 @@ + +-- Register wrench support for the soundblock mod + +wrench.register_node("soundblock:block", { + lists = {}, + metas = { + gain = wrench.META_TYPE_INT, + hear_distance = wrench.META_TYPE_INT, + interval_max = wrench.META_TYPE_INT, + interval_min = wrench.META_TYPE_INT, + randomize_position = wrench.META_TYPE_INT, + selected_sound_key = wrench.META_TYPE_STRING, + state = wrench.META_TYPE_STRING, + }, + timer = true, +}) +