Skip to content

Commit

Permalink
Merge branch 'master' into christmasSupport
Browse files Browse the repository at this point in the history
  • Loading branch information
SwissalpS authored Dec 29, 2024
2 parents 298ce26 + 7fd0dd9 commit 5ec963a
Show file tree
Hide file tree
Showing 7 changed files with 75 additions and 3 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
3 changes: 3 additions & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ local mods = {
"digistuff",
"digtron",
"drawers",
"easyvend",
"mesecons_commandblock",
"mesecons_detector",
"mesecons_luacontroller",
"mesecons_microcontroller",
"missions",
"mobs",
"more_chests",
"pipeworks",
Expand All @@ -47,6 +49,7 @@ local mods = {
"technic",
"technic_chests",
"technic_cnc",
"vacuum",
"vessels",
"xdecor",
}
Expand Down
3 changes: 3 additions & 0 deletions mod.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ optional_depends = """
digiscreen,
digistuff,
drawers,
easyvend,
mesecons_commandblock,
mesecons_detector,
mesecons_luacontroller,
mesecons_microcontroller,
missions,
mobs,
more_chests,
pipeworks,
Expand All @@ -26,6 +28,7 @@ optional_depends = """
technic,
technic_chests,
technic_cnc,
vacuum,
vessels,
xdecor,
"""
Expand Down
27 changes: 27 additions & 0 deletions nodes/easyvend.lua
Original file line number Diff line number Diff line change
@@ -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
18 changes: 18 additions & 0 deletions nodes/missions.lua
Original file line number Diff line number Diff line change
@@ -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,
},
})

13 changes: 10 additions & 3 deletions nodes/pipeworks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,18 @@ 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
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
Expand All @@ -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

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

0 comments on commit 5ec963a

Please sign in to comment.