mirror of
https://github.com/mt-mods/home_workshop_modpack.git
synced 2025-03-14 16:50:23 +01:00
Added craft_items to machine definition for recipe creation
This commit is contained in:
parent
2058c58738
commit
16041eecfb
@ -49,6 +49,16 @@ local function reg_simple(name, def)
|
||||
end
|
||||
end
|
||||
})
|
||||
if def.craft_items ~= nil then
|
||||
minetest.register_craft({
|
||||
output = name,
|
||||
recipe = {
|
||||
{"default:steel_ingot",def.craft_items[1],"default:steel_ingot"},
|
||||
{"default:steel_ingot",def.craft_items[2],"default:steel_ingot"},
|
||||
{"default:steel_ingot","default:copperblock","default_steel_ingot"}
|
||||
}
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
function home_vending_machines.register_machine(type, name, def)
|
||||
|
@ -7,7 +7,8 @@ home_vending_machines.register_machine("simple", "home_workshop_misc:soda_machin
|
||||
sounds = nil,
|
||||
_vmachine = {
|
||||
item = "home_vending_machines:soda_can"
|
||||
}
|
||||
},
|
||||
craft_items = {"group:vessel","group:food_sugar"}
|
||||
})
|
||||
|
||||
home_vending_machines.register_machine("simple", "home_vending_machines:drink_machine", {
|
||||
@ -16,7 +17,8 @@ home_vending_machines.register_machine("simple", "home_vending_machines:drink_ma
|
||||
sounds = nil,
|
||||
_vmachine = {
|
||||
item = {"home_vending_machines:soda_can", "home_vending_machines:water_bottle"}
|
||||
}
|
||||
},
|
||||
craft_items = {"group:vessel","default:steel_ingot"}
|
||||
})
|
||||
|
||||
home_vending_machines.register_machine("simple", "home_vending_machines:sweet_machine", {
|
||||
@ -25,5 +27,6 @@ home_vending_machines.register_machine("simple", "home_vending_machines:sweet_ma
|
||||
sounds = nil,
|
||||
_vmachine = {
|
||||
item = "home_vending_machines:soda_can"
|
||||
}
|
||||
})
|
||||
},
|
||||
craft_items = {"group:food_sugar", "default:steel_ingot"}
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user