From cba3b935b70eb8a51006175126ae76b5da16906b Mon Sep 17 00:00:00 2001 From: Luke aka SwissalpS <161979+SwissalpS@users.noreply.github.com> Date: Tue, 31 Dec 2024 20:09:45 +0100 Subject: [PATCH] Add [wine] support (#31) --- init.lua | 1 + mod.conf | 1 + nodes/wine.lua | 14 ++++++++++++++ 3 files changed, 16 insertions(+) create mode 100644 nodes/wine.lua diff --git a/init.lua b/init.lua index f12e5ff..714e260 100644 --- a/init.lua +++ b/init.lua @@ -64,6 +64,7 @@ local mods = { "technic_cnc", "vacuum", "vessels", + "wine", "xdecor", } diff --git a/mod.conf b/mod.conf index 7e0b3bf..b295535 100644 --- a/mod.conf +++ b/mod.conf @@ -43,6 +43,7 @@ optional_depends = """ technic_cnc, vacuum, vessels, + wine, xdecor, """ min_minetest_version = 5.0 diff --git a/nodes/wine.lua b/nodes/wine.lua new file mode 100644 index 0000000..04f2283 --- /dev/null +++ b/nodes/wine.lua @@ -0,0 +1,14 @@ + +-- Register wrench support for the wine mod + +wrench.register_node("wine:wine_barrel", { + lists = { "dst", "src", "src_b" }, + metas = { + formspec = wrench.META_TYPE_IGNORE, + infotext = wrench.META_TYPE_IGNORE, + status = wrench.META_TYPE_FLOAT, + water = wrench.META_TYPE_INT, + }, + timer = true, +}) +