• Hey! Register here to create your account, engage with the community, and talk about what is new!

How to make a “percentage mining block”

NoobeezGamer

New member
Joined
Nov 5, 2023
Messages
4
Reaction score
1
Basically all I’m asking is how to make the mining mechanic from ⛏️
 

Mipoxa

Well-known member
Mythic
Joined
Sep 6, 2020
Messages
86
Reaction score
12
Iirc to do it the way pickaxe by Sputt does it, you need to have the player be in survival mode, but when they start mining a block - switch them to adventure mode and have them be in adventure mode until they stop mining. This will make it so there's no mining progress being made, but at the same the animation will play until the player stops holding left click, and the left click event will be triggered repeatedly. Then you can just add your own custom block breaking mechanic using display block fracture and incrementing a variable every time the left click event triggers.
 
Top Bottom