How to add sound effects to player's main inventory?

User avatar
D00Med
Member
 
Posts: 934
Joined: Sat Feb 07, 2015 22:49
Location: Australia...somewhere
GitHub: D00Med

How to add sound effects to player's main inventory?

by D00Med » Thu May 17, 2018 21:22

I'd like to add a sound effect whenever items are moved around in the player's inventory.
Is there some other way to change "on_put", "on_take" etc.?
Is it possible to also play a sound when items are selected in the hotbar?
Look! I have a signature :]
My subgame: https://forum.minetest.net/viewtopic.php?f=15&t=14051#p207242
dmobs2 is coming...
 

User avatar
rubenwardy
Moderator
 
Posts: 5411
Joined: Tue Jun 12, 2012 18:11
Location: United Kingdom
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: How to modify the player's main inventory?

by rubenwardy » Thu May 17, 2018 21:38

in 0.5.0 you can use player inventory callbacks
Core Developer | Donate | My Twitter | Mods | Mods 4 Android | Node Box Editor | Minetest Modding Book

Hello profile reader

LgiOxMFYXOqtqVqMPhbw1Bn3oNRvEC7j
 

User avatar
D00Med
Member
 
Posts: 934
Joined: Sat Feb 07, 2015 22:49
Location: Australia...somewhere
GitHub: D00Med

Re: How to add sound effects to player's main inventory?

by D00Med » Fri May 18, 2018 06:40

Great! Really looking forward to that.
Look! I have a signature :]
My subgame: https://forum.minetest.net/viewtopic.php?f=15&t=14051#p207242
dmobs2 is coming...
 


Return to Modding Discussion



Who is online

Users browsing this forum: Google [Bot] and 3 guests