forked from nalc/homedecor_modpack
change speaker and speaker-based recipes
now, you must craft a speaker driver (the actual speaker itself) first, then use it to craft the "small" and "large" speakers, alarm clock, etc.
This commit is contained in:
parent
5b705cf4ed
commit
aa6dbf37f5
@ -88,6 +88,11 @@ minetest.register_craftitem("homedecor:steel_wire", {
|
|||||||
inventory_image = "homedecor_steel_wire.png"
|
inventory_image = "homedecor_steel_wire.png"
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craftitem("homedecor:speaker_driver", {
|
||||||
|
description = S("Speaker driver"),
|
||||||
|
inventory_image = "homedecor_speaker_driver.png"
|
||||||
|
})
|
||||||
|
|
||||||
-- alternate craftitem for silicon if mesecons isn't installed.
|
-- alternate craftitem for silicon if mesecons isn't installed.
|
||||||
|
|
||||||
if ( minetest.get_modpath("mesecons") ) == nil then
|
if ( minetest.get_modpath("mesecons") ) == nil then
|
||||||
@ -873,42 +878,48 @@ minetest.register_craft({
|
|||||||
burntime = 30,
|
burntime = 30,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- =====================================
|
-- Speakers
|
||||||
-- Speakers require copper from moreores
|
|
||||||
|
|
||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
output = "homedecor:speaker",
|
output = "homedecor:speaker_driver 2",
|
||||||
recipe = {
|
recipe = {
|
||||||
{ "group:wood", "wool:black", "group:wood" },
|
{ "", "default:steel_ingot", "" },
|
||||||
{ "group:wood", "homedecor:copper_wire", "group:wood" },
|
{ "default:paper", "homedecor:copper_wire", "default:iron_lump" },
|
||||||
{ "group:wood", "wool:black", "group:wood" },
|
{ "", "default:steel_ingot", "" },
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
output = "homedecor:speaker_small",
|
output = "homedecor:speaker_small",
|
||||||
recipe = {
|
recipe = {
|
||||||
{ "group:wood", "wool:black", "group:wood" },
|
{ "wool:black", "homedecor:speaker_driver", "group:wood" },
|
||||||
{ "group:wood", "homedecor:copper_wire", "group:wood" },
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft( {
|
||||||
|
output = "homedecor:speaker",
|
||||||
|
recipe = {
|
||||||
|
{ "wool:black", "homedecor:speaker_driver", "group:wood" },
|
||||||
|
{ "wool:black", "homedecor:speaker_driver", "group:wood" },
|
||||||
|
{ "wool:black", "group:wood", "group:wood" },
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- cotton version
|
-- cotton version
|
||||||
|
|
||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
output = "homedecor:speaker",
|
output = "homedecor:speaker_small",
|
||||||
recipe = {
|
recipe = {
|
||||||
{ "group:wood", "cotton:black", "group:wood" },
|
{ "cotton:black", "homedecor:speaker_driver", "group:wood" },
|
||||||
{ "group:wood", "default:copper_ingot", "group:wood" },
|
|
||||||
{ "group:wood", "cotton:black", "group:wood" },
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
output = "homedecor:speaker_small",
|
output = "homedecor:speaker",
|
||||||
recipe = {
|
recipe = {
|
||||||
{ "group:wood", "cotton:black", "group:wood" },
|
{ "cotton:black", "homedecor:speaker_driver", "group:wood" },
|
||||||
{ "group:wood", "default:copper_ingot", "group:wood" },
|
{ "cotton:black", "homedecor:speaker_driver", "group:wood" },
|
||||||
|
{ "cotton:black", "group:wood", "group:wood" },
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -1916,7 +1927,7 @@ minetest.register_craft({
|
|||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "homedecor:alarm_clock",
|
output = "homedecor:alarm_clock",
|
||||||
recipe = {
|
recipe = {
|
||||||
{ "homedecor:plastic_sheeting", "homedecor:speaker_small", "homedecor:plastic_sheeting" },
|
{ "homedecor:plastic_sheeting", "homedecor:speaker_driver", "homedecor:plastic_sheeting" },
|
||||||
{ "homedecor:plastic_sheeting", "homedecor:digital_clock", "homedecor:plastic_sheeting" },
|
{ "homedecor:plastic_sheeting", "homedecor:digital_clock", "homedecor:plastic_sheeting" },
|
||||||
{ "homedecor:plastic_sheeting", "homedecor:power_crystal", "homedecor:plastic_sheeting" },
|
{ "homedecor:plastic_sheeting", "homedecor:power_crystal", "homedecor:plastic_sheeting" },
|
||||||
},
|
},
|
||||||
|
BIN
homedecor/textures/homedecor_speaker_driver.png
Normal file
BIN
homedecor/textures/homedecor_speaker_driver.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 268 B |
Loading…
Reference in New Issue
Block a user