Skip to content

Commit

Permalink
Add [wine] support
Browse files Browse the repository at this point in the history
  • Loading branch information
SwissalpS committed Dec 27, 2024
1 parent 4e62ddb commit 51985ea
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions .luacheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ globals = {
}

read_globals = {
"core",
"table.copy",
"table.indexof",
"minetest",
Expand Down
1 change: 1 addition & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ local mods = {
"technic_chests",
"technic_cnc",
"vessels",
"wine",
"xdecor",
}

Expand Down
1 change: 1 addition & 0 deletions mod.conf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ optional_depends = """
technic_chests,
technic_cnc,
vessels,
wine,
xdecor,
"""
min_minetest_version = 5.0
20 changes: 20 additions & 0 deletions nodes/wine.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

-- 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,
after_place = function(pos)
local timer = core.get_node_timer(pos)
if not timer:started() then
timer:start(0)
end
end,
})

0 comments on commit 51985ea

Please sign in to comment.