Started by
papytrap
on
Topic category: Troubleshooting, bugs, and solutions
So, tried to use a custom code snippet to make a specific vanilla mob to attack a modded one. However, as soon than I've joined the world, it crashed the game after a second
The same issue came in different world's as well, and even creating one
However, even deleting the procedure, it keeps making the same problem, even when making a new world
Here's the minecraft logs
The custom code snippet
((MobEntity)entity).targetSelector.addGoal(1, new NearestAttackableTargetGoal((MobEntity)entity, VillagerEntity.class, false, false));
Please, can anyone help me out to fix this?
You can't add goals through a procedure, they are part of the entity code. Regenerate the code and everything should be fixed if you didn't lock any elements.
It worked, thank you so much!