1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2025-07-19 22:10:21 +02:00

Compare commits

...

3 Commits

3 changed files with 11 additions and 13 deletions

View File

@ -47,11 +47,6 @@ minetest.register_craftitem("homedecor:soda_can", {
on_use = minetest.item_eat(2),
})
minetest.register_craftitem("homedecor:coin", {
description = S("Gold Coin (for soda vending machine)"),
inventory_image = "homedecor_coin.png",
})
-- the actual crafts
minetest.register_craft( {
@ -1546,7 +1541,7 @@ minetest.register_craft( {
recipe = {
{ "default:steel_ingot", "default:steel_ingot", "basic_materials:ic" },
{ "default:steel_ingot", "bucket:bucket_water", "default:steel_ingot" },
{ "default:steel_ingot", "technic:motor", "default:steel_ingot" }
{ "default:steel_ingot", "basic_materials:motor", "default:steel_ingot" }
},
})
@ -1563,7 +1558,7 @@ minetest.register_craft( {
output = "homedecor:dryer",
recipe = {
{ "default:steel_ingot", "default:steel_ingot", "basic_materials:ic" },
{ "default:steel_ingot", "bucket:bucket_empty", "technic:motor" },
{ "default:steel_ingot", "bucket:bucket_empty", "basic_materials:motor" },
{ "default:steel_ingot", "basic_materials:heating_element", "default:steel_ingot" }
},
})
@ -1592,7 +1587,7 @@ minetest.register_craft( {
output = "homedecor:dishwasher",
recipe = {
{ "basic_materials:ic", "homedecor:fence_chainlink", "default:steel_ingot", },
{ "default:steel_ingot", "homedecor:shower_head", "technic:motor" },
{ "default:steel_ingot", "homedecor:shower_head", "basic_materials:motor" },
{ "default:steel_ingot", "basic_materials:heating_element", "bucket:bucket_water" }
},
})
@ -1893,8 +1888,8 @@ minetest.register_craft({
output = "homedecor:air_conditioner",
recipe = {
{ "default:steel_ingot", "building_blocks:grate", "default:steel_ingot" },
{ "default:steel_ingot", "technic:motor", "default:steel_ingot" },
{ "default:steel_ingot", "technic:motor", "default:steel_ingot" },
{ "default:steel_ingot", "basic_materials:motor", "default:steel_ingot" },
{ "default:steel_ingot", "basic_materials:motor", "default:steel_ingot" },
},
})
@ -1910,7 +1905,7 @@ minetest.register_craft({
minetest.register_craft({
output = "homedecor:ceiling_fan",
recipe = {
{ "technic:motor" },
{ "basic_materials:motor" },
{ "homedecor:fan_blades" },
{ "homedecor:glowlight_small_cube" }
}
@ -1994,7 +1989,7 @@ minetest.register_craft({
output = "homedecor:dvd_player 2",
recipe = {
{ "", "basic_materials:plastic_sheet", "" },
{ "default:obsidian_glass", "technic:motor", "technic:motor" },
{ "default:obsidian_glass", "basic_materials:motor", "basic_materials:motor" },
{ "default:mese_crystal_fragment", "basic_materials:ic", "basic_materials:energy_crystal_simple" },
},
})

View File

@ -3,6 +3,7 @@ basic_materials
unifieddyes
homedecor_i18n
creative
currency?
building_blocks?
signs_lib?
moreblocks?

View File

@ -219,7 +219,7 @@ homedecor.register("soda_machine", {
local fdir_to_fwd = { {0, -1}, {-1, 0}, {0, 1}, {1, 0} }
local fdir = node.param2
local pos_drop = { x=pos.x+fdir_to_fwd[fdir+1][1], y=pos.y, z=pos.z+fdir_to_fwd[fdir+1][2] }
if wieldname == "homedecor:coin" then
if wieldname == "currency:minegeld_cent_25" then
minetest.spawn_item(pos_drop, "homedecor:soda_can")
minetest.sound_play("insert_coin", {
pos=pos, max_hear_distance = 5
@ -234,3 +234,5 @@ homedecor.register("soda_machine", {
end
end
})
minetest.register_alias("homedecor:coin", "currency:minegeld_cent_25")