[BUG 1.16.5] Digger zombie cannot dig hand breakable blocks that require no tool when "proper tool only" set to true
Kaleidio opened this issue ยท 7 comments
Describe the bug
"Digger With Proper Tool Only" does not work as intended.
I have set the boolean to true, and the config comment states "blocks that require no tool will still be broken". the zombie will not break a wooden fence, though it was allowed to before when that boolean was set to false.
to ensure every zombie spawns with the ability to break blocks, I set "digger chance" to 1.0
I'm not sure if this bug is because wooden fences are hand breakable even though they have tools to break them faster. I have not seen the code for that before.
Additionally note that "Digger Tool Only" is kept to false, which should theoretically allow them to use hands, but it still won't for some reason. Setting this to true prevents the issue as they wouldn't be allowed to attempt in the first place.
Versions (don't use "latest"):
- Minecraft: 1.16.5
- Forge: 36.2.34
- Enhanced AI: 1.2.3
- InsaneLib: 1.4.2
Steps to reproduce
- Set digger chance to 1.0 to ensure all zombies spawn with the ability
- Set "digger with proper tool only" to true
- Place a zombie in a fence and a villager in a nearby fence
- The zombie will not be able to break the fence
- Shut down the game, set "digger with proper tool only" to false
- Restart and the zombie will be able to break the fence as expected.
New information:
for whatever reason, the same bug occurs if the boolean is set to true, even if the zombie is holding the correct tool. I used a command block to summon one manually. Holding a diamond pickaxe, it refused to break the stone wall in front of it blocking its path to a villager
The tool must be in the off-hand for "Tool Only" to work.
Gonna test this in 1.19.3 as the code hasn't changed.
The tool must be in the off-hand for "Tool Only" to work.
understood. "tool only" does seem to work.
but the "proper tool" behaviour still seems broken, right? i would assume an empty hand, even if it is the offhand, against dirt would have worked.
but the "proper tool" behaviour still seems broken, right? i would assume an empty hand, even if it is the offhand, against dirt would have worked
As you report it, yes, seems to be broken as an empty hand should work.
I have found that indeed the issue seemed to actually be caused by SpecialAI instead of Enhanced AI. I was able to prevent the crash by making sure its ability blacklist was applied to all entities.
However the empty hand issue is still very much prevalent. I am unsure if you wish for me to open a separate issue and let that be tracked there and close this one, or to just keep this one open.
Sorry it took me so long to get back to you, struggling with university workloads at the moment ^^'
Looking at the old 1.16 code nothing changed for blocks that require a correct tool, so I really don't know what to do. I might debug this in the future, but not really fond of going back to 1.16 code.