So i want to make a mining system. First, I need to check if the player have a pickaxe, if yes then the player can dig stuff.
Second, the digging spot will be gone after 3 tries ( after digging 3 times, it cant be digged anymore until player go to worldmap )
Third, the materials that can be digged have different difficulty to get. For example bronze ore - 90% chance and iron ore - 10% chance. You can only get 1 item
Any suggestion?
Edit : Already know how to do 1 and 2, now the 3 one im stuck. Ho do you generate random item probability?
Second, the digging spot will be gone after 3 tries ( after digging 3 times, it cant be digged anymore until player go to worldmap )
Third, the materials that can be digged have different difficulty to get. For example bronze ore - 90% chance and iron ore - 10% chance. You can only get 1 item
Any suggestion?
Edit : Already know how to do 1 and 2, now the 3 one im stuck. Ho do you generate random item probability?