We refactor the collectible code into its own, dedicated class so that we can maintain and develop this feature more easily in the future.
Before this, we adjust the player's height and match the height (eye-level) in Minecraft (1.62). Do correct me if I'm wrong!
Finally, we record and then add sound to mining blocks and picking up collectibles that drop from mined blocks.
Strangely -- we do manage to fix the colour bug for some collectibles (ruby and emerald), but then this colour bug returns later on. Any ideas, leave them in the comments! Thank you :)
Playlist: • new Python Minecraft with Ursina
Code and assets from video: https://github.com/RedHenDev/ursina_t...
Thanks for watching!
Watch video Python Minecraft with Ursina: mining sounds and collectible pick up - part 19 online without registration, duration hours minute second in high quality. This video was added by user Red Hen dev 20 June 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,126 once and liked it 35 people.