Greetings, I recently wondered how it is possible to set the player to dig all the blocks at a certain speed? At first I thought to use the effects to slow down the digging, but unfortunately I can't set the speed to exactly 5s(for example) through it. I would like to listen to the suggestions of other developers because I don't fully know the bukkit api yet.
Listen when the player starts mining a block (PlayerInteractEvent I believe), create a new BukkitRunnable with a set delay in ticks, then break the block and drop the item the block woul have dropped. Also give player infinite mining fatigue so that they can't break the block normally (if the delay you want happens to be slower than the actual time it takes to break the block).
Hey, I had some free time and I tried to make your way, but first I decided to check if I can change the block strength at all. Here's what I got: Could you help me with this if you know what the problem is ?