Skip to content

Commit

Permalink
Merge branch 'master' into spacecannonSupport
Browse files Browse the repository at this point in the history
  • Loading branch information
SwissalpS authored Dec 29, 2024
2 parents 08a6463 + 359650b commit 86aa0ca
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 0 deletions.
2 changes: 2 additions & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ local mods = {
"christmas",
"connected_chests",
"default",
"digibuilder",
"digilines",
"digiscreen",
"digistuff",
Expand All @@ -50,6 +51,7 @@ local mods = {
"protector",
"signs_lib",
"spacecannon",
"soundblock",
"technic",
"technic_chests",
"technic_cnc",
Expand Down
2 changes: 2 additions & 0 deletions mod.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ optional_depends = """
christmas,
default,
digtron,
digibuilder,
digilines,
digiscreen,
digistuff,
Expand All @@ -29,6 +30,7 @@ optional_depends = """
protector,
signs_lib,
spacecannon,
soundblock,
technic,
technic_chests,
technic_cnc,
Expand Down
13 changes: 13 additions & 0 deletions nodes/digibuilder.lua
Original file line number Diff line number Diff line change
@@ -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,
},
})

17 changes: 17 additions & 0 deletions nodes/soundblock.lua
Original file line number Diff line number Diff line change
@@ -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,
})

0 comments on commit 86aa0ca

Please sign in to comment.