Compare commits

...

7 Commits

Author SHA1 Message Date
SmokeyDope f174b733ce Add sounds to cartography table 2023-02-25 11:46:33 +00:00
SmokeyDope b4f747bd84 Add dependencies for cartography table 2023-02-25 11:44:56 +00:00
SmokeyDope 0351556a2e Add sounds to loom 2023-02-25 11:40:45 +00:00
SmokeyDope 182f9b5dc2 Add dependencies for loom 2023-02-25 11:39:38 +00:00
SmokeyDope bd4eb01a46 Add sounds to fletching table 2023-02-25 11:31:14 +00:00
SmokeyDope 5c25901433 Add dependencies for fletching table
required to get sound working
2023-02-25 11:29:55 +00:00
SmokeyDope 2d6e1c61a2 Add placement sound to lectern 2023-02-25 10:59:05 +00:00
7 changed files with 15 additions and 0 deletions

View File

@ -12,6 +12,7 @@ minetest.register_node("mcl_cartography_table:cartography_table", {
},
paramtype2 = "facedir",
groups = { axey = 2, handy = 1, deco_block = 1, material_wood = 1, flammable = 1 },
sounds = mcl_sounds.node_sound_wood_defaults(),
_mcl_blast_resistance = 2.5,
_mcl_hardness = 2.5
})

View File

@ -1,3 +1,4 @@
name = mcl_cartography_table
author = PrairieWind
depends = mcl_core, mcl_sounds, mcl_tools
description = Adds the cartography table villager workstation to MineClone 2/5. Used to copy and create maps.

View File

@ -11,6 +11,7 @@ minetest.register_node("mcl_fletching_table:fletching_table", {
},
paramtype2 = "facedir",
groups = { axey = 2, handy = 1, deco_block = 1, material_wood = 1, flammable = 1 },
sounds = mcl_sounds.node_sound_wood_defaults(),
_mcl_blast_resistance = 2.5,
_mcl_hardness = 2.5
})

View File

@ -1,3 +1,4 @@
name = mcl_fletching_table
author = PrairieWind
depends = mcl_core, mcl_sounds, mcl_tools
description = Adds the fletching table villager workstation to MineClone 2/5.

View File

@ -96,6 +96,15 @@ local lectern_def = {
local lectern_node = ItemStack(itemstack)
-- Place the node!
local _, success = minetest.item_place_node(lectern_node, placer, pointed_thing, fdir)
-- Add placement sound.
local idef = lectern_node:get_definition()
if success then
if idef.sounds and idef.sounds.place then
minetest.sound_play(idef.sounds.place, {pos=above, gain=1}, true)
end
end
if not success then
return itemstack
end

View File

@ -12,6 +12,7 @@ minetest.register_node("mcl_loom:loom", {
},
paramtype2 = "facedir",
groups = { axey = 2, handy = 1, deco_block = 1, material_wood = 1, flammable = 1 },
sounds = mcl_sounds.node_sound_wood_defaults(),
_mcl_blast_resistance = 2.5,
_mcl_hardness = 2.5
})

View File

@ -1,3 +1,4 @@
name = mcl_loom
author = PrairieWind
depends = mcl_core, mcl_sounds, mcl_tools
description = Adds the loom villager workstation to MineClone 2/5. Used to add patterns to banners.