From cbe1b0992822d4ff99b0a172b3d479fbd3fe483e Mon Sep 17 00:00:00 2001 From: Luke aka SwissalpS <161979+SwissalpS@users.noreply.github.com> Date: Sun, 29 Dec 2024 17:42:15 +0100 Subject: [PATCH 1/4] Fix warning when using [pipeworks] without luacontroller (#36) --- .luacheckrc | 1 + nodes/pipeworks.lua | 13 ++++++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.luacheckrc b/.luacheckrc index 3178a9b..d7b2164 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -5,6 +5,7 @@ globals = { } read_globals = { + "core", "table.copy", "table.indexof", "minetest", diff --git a/nodes/pipeworks.lua b/nodes/pipeworks.lua index 0ec5d94..e57502d 100644 --- a/nodes/pipeworks.lua +++ b/nodes/pipeworks.lua @@ -142,6 +142,8 @@ for i = 1, 6 do table.insert(mese_tube_data.lists, "line"..i) end +local has_lua_tube = core.get_modpath("mesecons_luacontroller") and true + for xm = 0, 1 do for xp = 0, 1 do for ym = 0, 1 do @@ -149,7 +151,9 @@ for yp = 0, 1 do for zm = 0, 1 do for zp = 0, 1 do local tname = xm..xp..ym..yp..zm..zp - wrench.register_node("pipeworks:lua_tube"..tname, lua_tube_data) + if has_lua_tube then + wrench.register_node("pipeworks:lua_tube"..tname, lua_tube_data) + end wrench.register_node("pipeworks:mese_tube_"..tname, mese_tube_data) end end @@ -158,5 +162,8 @@ end end end -lua_tube_data.drop = nil -wrench.register_node("pipeworks:lua_tube_burnt", lua_tube_data) +if has_lua_tube then + lua_tube_data.drop = nil + wrench.register_node("pipeworks:lua_tube_burnt", lua_tube_data) +end + From bc79a707374d6c21aff14b40e83d290dd76ab706 Mon Sep 17 00:00:00 2001 From: Luke aka SwissalpS <161979+SwissalpS@users.noreply.github.com> Date: Sun, 29 Dec 2024 18:03:01 +0100 Subject: [PATCH 2/4] Add [vacuum] support (#18) --- init.lua | 1 + mod.conf | 1 + nodes/vacuum.lua | 13 +++++++++++++ 3 files changed, 15 insertions(+) create mode 100644 nodes/vacuum.lua diff --git a/init.lua b/init.lua index 1357bf2..bff072b 100644 --- a/init.lua +++ b/init.lua @@ -46,6 +46,7 @@ local mods = { "technic", "technic_chests", "technic_cnc", + "vacuum", "vessels", "xdecor", } diff --git a/mod.conf b/mod.conf index c84c353..af7011a 100644 --- a/mod.conf +++ b/mod.conf @@ -25,6 +25,7 @@ optional_depends = """ technic, technic_chests, technic_cnc, + vacuum, vessels, xdecor, """ diff --git a/nodes/vacuum.lua b/nodes/vacuum.lua new file mode 100644 index 0000000..1e19380 --- /dev/null +++ b/nodes/vacuum.lua @@ -0,0 +1,13 @@ + +-- Register wrench support for the vacuum mod + +wrench.register_node("vacuum:airpump", { + lists = { "main" }, + metas = { + enabled = wrench.META_TYPE_INT, + formspec = wrench.META_TYPE_IGNORE, + infotext = wrench.META_TYPE_IGNORE, + owner = wrench.META_TYPE_STRING, + }, +}) + From 637f0f76442a6beb0b154a9dac053a6365ba121d Mon Sep 17 00:00:00 2001 From: Luke aka SwissalpS <161979+SwissalpS@users.noreply.github.com> Date: Sun, 29 Dec 2024 18:06:25 +0100 Subject: [PATCH 3/4] Add [missions] support (#19) --- init.lua | 1 + mod.conf | 1 + nodes/missions.lua | 18 ++++++++++++++++++ 3 files changed, 20 insertions(+) create mode 100644 nodes/missions.lua diff --git a/init.lua b/init.lua index bff072b..e16af95 100644 --- a/init.lua +++ b/init.lua @@ -38,6 +38,7 @@ local mods = { "mesecons_detector", "mesecons_luacontroller", "mesecons_microcontroller", + "missions", "mobs", "more_chests", "pipeworks", diff --git a/mod.conf b/mod.conf index af7011a..50f4c4b 100644 --- a/mod.conf +++ b/mod.conf @@ -17,6 +17,7 @@ optional_depends = """ mesecons_detector, mesecons_luacontroller, mesecons_microcontroller, + missions, mobs, more_chests, pipeworks, diff --git a/nodes/missions.lua b/nodes/missions.lua new file mode 100644 index 0000000..6ce85fe --- /dev/null +++ b/nodes/missions.lua @@ -0,0 +1,18 @@ + +-- Register wrench support for the missions mod + +wrench.register_node("missions:mission", { + lists = { "main" }, + metas = { + description = wrench.META_TYPE_STRING, + hidden = wrench.META_TYPE_INT, + infotext = wrench.META_TYPE_STRING, + name = wrench.META_TYPE_STRING, + owner = wrench.META_TYPE_STRING, + steps = wrench.META_TYPE_STRING, + successcount = wrench.META_TYPE_INT, + time = wrench.META_TYPE_INT, + valid = wrench.META_TYPE_INT, + }, +}) + From 7fd0dd94532c751e3a4320911d3f59405ddee347 Mon Sep 17 00:00:00 2001 From: Luke aka SwissalpS <161979+SwissalpS@users.noreply.github.com> Date: Sun, 29 Dec 2024 18:08:56 +0100 Subject: [PATCH 4/4] Add [easyvend] support (#24) --- init.lua | 1 + mod.conf | 1 + nodes/easyvend.lua | 27 +++++++++++++++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 nodes/easyvend.lua diff --git a/init.lua b/init.lua index e16af95..3b7f103 100644 --- a/init.lua +++ b/init.lua @@ -34,6 +34,7 @@ local mods = { "digistuff", "digtron", "drawers", + "easyvend", "mesecons_commandblock", "mesecons_detector", "mesecons_luacontroller", diff --git a/mod.conf b/mod.conf index 50f4c4b..532d42b 100644 --- a/mod.conf +++ b/mod.conf @@ -13,6 +13,7 @@ optional_depends = """ digiscreen, digistuff, drawers, + easyvend, mesecons_commandblock, mesecons_detector, mesecons_luacontroller, diff --git a/nodes/easyvend.lua b/nodes/easyvend.lua new file mode 100644 index 0000000..fe2fd33 --- /dev/null +++ b/nodes/easyvend.lua @@ -0,0 +1,27 @@ + +-- Register wrench support for the easyvend mod + +for _, name in ipairs({ + "easyvend:vendor", "easyvend:vendor_on", + "easyvend:depositor", "easyvend:depositor_on", + }) do + wrench.register_node(name, { + lists = { "gold", "item" }, + metas = { + configmode = wrench.META_TYPE_INT, + cost = wrench.META_TYPE_INT, + earnings = wrench.META_TYPE_INT, + formspec = wrench.META_TYPE_IGNORE, + infotext = wrench.META_TYPE_IGNORE, + itemname = wrench.META_TYPE_STRING, + joke_id = wrench.META_TYPE_INT, + joketimer = wrench.META_TYPE_INT, + message = wrench.META_TYPE_IGNORE, + number = wrench.META_TYPE_INT, + owner = wrench.META_TYPE_STRING, + status = wrench.META_TYPE_IGNORE, + stock = wrench.META_TYPE_INT, + wear = wrench.META_TYPE_INT, + }, + }) +end