I am trying to make a passive mob hostile and I've gotten the pathfinder goals all working but when the mob tries to hit me, the plugin throws an exception as the generic attack damage attribute doesn't exist on the passive mob. I know that I need to somehow add the attribute to the mob and I've also found a few spigot forum posts where people had the same issues but they are all using the spigot mapping and i am using the mojang ones and after some trying around I still haven't gotten it to work. Could someone tell me what to do or point me to a resource where i can see what methods from the the spigot mappings are which in the mojang mappings?
https://www.spigotmc.org/threads/register-attack-damage.415666/
https://www.spigotmc.org/threads/nms-entity-attributes.542279/
Hello everyone i m develoing plugin that makes passive mobs attack monsters now i dealt with pathfinders and entity registering. My pig approaces and...