Add sounds for itemframe

This commit is contained in:
Wuzzy 2023-03-07 22:08:56 +01:00
parent 99b869bb77
commit ebea522ae0
5 changed files with 38 additions and 2 deletions

View File

@ -257,7 +257,12 @@ minetest.register_node("rp_itemshow:frame",{
-- So that placing a magnocompass on it will point
-- the needle to the correct direction
special_magnocompass_place_handling = 1},
sounds = rp_sounds.node_sound_defaults(),
sounds = rp_sounds.node_sound_defaults({
place = { name = "rp_itemshow_place_frame", gain = 0.5 },
dug = { name = "rp_itemshow_dug_frame", gain = 0.5 },
dig = { name = "rp_itemshow_dig_frame", gain = 0.35 },
footstep = { name = "rp_itemshow_dig_frame", gain = 0.35, pitch = 1.5 },
}),
is_ground_content = false,
on_rotate = function(pos, node, user, mode, new_param2)
if mode == screwdriver.ROTATE_AXIS then

View File

@ -1,4 +1,35 @@
Itemshow mod
# Itemshow mod
Use the 'place' key to add or remove an item from a item frame or item showcase.
Punch the block to force update if items do not appear.
## Credits / licensing
### Coding
By Wuzzy.
License: LGPLv2.1
### Textures
By Wuzzy, based on works by KaadmY.
License: CC BY-SA 3.0
### Sounds
* `rp_itemshow_place_frame.ogg`
* Derivative work of sound 'Drinking' by PearceWilsonKing
* Origin: <https://freesound.org/people/limetoe/sounds/317012/>
* License: CC BY 3.0
* `rp_itemshow_dig_frame.ogg`
* Based on a public domain sound
* License: CC0
* `rp_itemshow_dug_frame.ogg`
* Based on a public domain sound
* License: CC0
* `rp_itemshow_put_item.*.ogg`
* By Wuzzy
* License: CC0
* `rp_itemshow_take_item.*.ogg`
* By Wuzzy
* License: CC0

Binary file not shown.

Binary file not shown.

Binary file not shown.