Add [easyvend] support (#24)
This commit is contained in:
parent
637f0f7644
commit
7fd0dd9453
1
init.lua
1
init.lua
@ -34,6 +34,7 @@ local mods = {
|
|||||||
"digistuff",
|
"digistuff",
|
||||||
"digtron",
|
"digtron",
|
||||||
"drawers",
|
"drawers",
|
||||||
|
"easyvend",
|
||||||
"mesecons_commandblock",
|
"mesecons_commandblock",
|
||||||
"mesecons_detector",
|
"mesecons_detector",
|
||||||
"mesecons_luacontroller",
|
"mesecons_luacontroller",
|
||||||
|
1
mod.conf
1
mod.conf
@ -13,6 +13,7 @@ optional_depends = """
|
|||||||
digiscreen,
|
digiscreen,
|
||||||
digistuff,
|
digistuff,
|
||||||
drawers,
|
drawers,
|
||||||
|
easyvend,
|
||||||
mesecons_commandblock,
|
mesecons_commandblock,
|
||||||
mesecons_detector,
|
mesecons_detector,
|
||||||
mesecons_luacontroller,
|
mesecons_luacontroller,
|
||||||
|
27
nodes/easyvend.lua
Normal file
27
nodes/easyvend.lua
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user