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!