It happens when I am using addons to change a wither skeleton into a village guard. so the entity has the family 'villager' and the shell of a wither skeleton. The entity is tameable, and whenever there is a fight between two tamed , or untamed and tamed withers the server crashes after about 5-6 hits. The timing of the crash seems to be pretty exactly correlated with the amount of damage that is dealt in either direction. It seems to be 5-6 hits either way and the game crashes.
I have attached the world that I am using. It is stripped down to just the village guard addon in a flat world. It still happens faithfully whenever I run it on the Realm, but if I run it locally there is no issue with the withers fighting. The fight goes to completion with one of them dying and no crashing.
Attachments
Comments 4
Paradiscal,
I have made a lot of changes to the original addon, so it is pretty much my addon at this point. The village gaurds never used to attack one another or be tamed at all, but with these changes a bug has been exposed.
The issue I need the team to look into is why this crashes on my Realm, and it does not crash on my local games.
I found the source of the issue. You cannot have this code in the json of a mob or when they die the realm will crash:
"minecraft:loot": { }
for some reason if you leave an empty element for loot in the mobs json it will confuse the Realm server upon the death of that mob. The threshold for combat is death, after that the crash will occur before you can see the mob actually die.
I think this should be added as a requirement in the documentation for the loot component. users should be warned that they cannot leave this element empty. This was a very difficult bug to catch in my code because it doesn't make any sense why it will cause the Realm to crash and not my local games. since we cannot see the back end it causes a ton of trial and error to catch things like this.
Because of lack of updates on affected versions, I will resolved this bug as Cannot Reproduce.
Bug can be reopened if needed.
If you have issues with a specific realm, please contact Mojang Support at https://help.mojang.com/customer/portal/emails/new
Sometimes Mojang Support is under a heavy load and can reply with a delay. Please check the reply status on Twitter: @MojangStatus or at https://help.mojang.com
I could technically be due to the addon, I know there is a new addon format, you could request for an update to the new addon format, which might fix your issue over at this thread: http://mcpedl.com/village-guards