mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-24 09:35:10 +00:00
Add missing mesecon node sounds
This commit is contained in:
parent
3c8f5e92a5
commit
b8eeda3df0
2 changed files with 9 additions and 4 deletions
|
@ -123,6 +123,7 @@ for zmy=0, 1 do
|
|||
state = mesecon.state.off,
|
||||
onstate = "mesecons:wire_"..nodeid.."_on"
|
||||
}},
|
||||
sounds = default.node_sound_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("mesecons:wire_"..nodeid.."_on", {
|
||||
|
@ -153,6 +154,7 @@ for zmy=0, 1 do
|
|||
state = mesecon.state.on,
|
||||
offstate = "mesecons:wire_"..nodeid.."_off"
|
||||
}},
|
||||
sounds = default.node_sound_defaults(),
|
||||
})
|
||||
end
|
||||
end
|
||||
|
|
|
@ -49,7 +49,7 @@ end
|
|||
-- image: inventory and wield image of the pressure plate
|
||||
-- recipe: crafting recipe of the pressure plate
|
||||
|
||||
function mesecon:register_pressure_plate(offstate, onstate, description, texture_off, texture_on, recipe)
|
||||
function mesecon:register_pressure_plate(offstate, onstate, description, texture_off, texture_on, recipe, sounds)
|
||||
local ppspec = {
|
||||
offstate = offstate,
|
||||
onstate = onstate
|
||||
|
@ -67,6 +67,7 @@ function mesecon:register_pressure_plate(offstate, onstate, description, texture
|
|||
description = description,
|
||||
pressureplate = ppspec,
|
||||
on_timer = pp_on_timer,
|
||||
sounds = sounds,
|
||||
mesecons = {receptor = {
|
||||
state = mesecon.state.off
|
||||
}},
|
||||
|
@ -86,7 +87,7 @@ function mesecon:register_pressure_plate(offstate, onstate, description, texture
|
|||
drop = offstate,
|
||||
pressureplate = ppspec,
|
||||
on_timer = pp_on_timer,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
sounds = sounds,
|
||||
mesecons = {receptor = {
|
||||
state = mesecon.state.on
|
||||
}},
|
||||
|
@ -113,7 +114,8 @@ mesecon:register_pressure_plate(
|
|||
"Wooden Pressure Plate",
|
||||
"default_wood.png",
|
||||
"default_wood.png",
|
||||
{{"group:wood", "group:wood"}})
|
||||
{{"group:wood", "group:wood"}},
|
||||
default.node_sound_wood_defaults())
|
||||
|
||||
mesecon:register_pressure_plate(
|
||||
"mesecons_pressureplates:pressure_plate_stone_off",
|
||||
|
@ -121,7 +123,8 @@ mesecon:register_pressure_plate(
|
|||
"Stone Pressure Plate",
|
||||
"default_stone.png",
|
||||
"default_stone.png",
|
||||
{{"default:stone", "default:stone"}})
|
||||
{{"default:stone", "default:stone"}},
|
||||
default.node_sound_stone_defaults())
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
|
|
Loading…
Reference in a new issue