Basic drill mining without power [1.16-3.4.2+build.48]
loleq2105 opened this issue ยท 1 comments
Describe the bug
The basic drill mines without power as fast as it mines with it. It consumes power, but when it hits 30E it just keeps working.
Steps to Reproduce
-Get a basic drill
-Charge it up a bit
-Mine with it a bit
-See how it works even after the power is depleted
Environment (please complete the following information with the version):
- Minecraft: 1.16.1
- Fabric API: fabric-api-0.14.0+build.371-1.16
- Fabric Loader: 0.8.8 build 202
Logs
https://pastebin.com/Na5fKEcz
Edit:
I have recorded a video of the said "bug" in action:
https://streamable.com/bzm0qb
Why the ""? well, when recording this video, I realized that when the drill's energy depletes, its mining speed actually does decrease, but only very slightly. I don't think that's too good - you can exploit this and use the drill as an unbreakable iron pickaxe. You should change this.
Also, it works with diggus maximus, as you can see on the video.
I've made the drill break blocks much slower when it's out of charge. However it doesn't solve the underlying mod-compact issue with diggus maximus, for this, it will require further work and there isn't an easy fix to make the drill not mine when it's out energy.
This would require mixins in either AbstractBlock#calcBlockBreakingDelta or PlayerEntity#isUsingEffectiveTool. I don't want to invest much time into this, so this message is the last thing I'll do for this issue. It'll remain open for the mod-compact, someone else can take it further if they want.