Started by
8Vulcannus8
on
Topic category: Help with Minecraft modding (Java Edition)
I want to make a withers skeleton peaceful and follow a player if he has a sword in his inventory (The Player). I don't know how to do this so please help me. I'm in 1.12.2. By the way: sorry for the bad english
I'm not sure if this works with 1.12.2, but if the conditions are true, replace the entity with a different but identical peaceful entity and set health to the existing health of the original one.
I want to make the witherskeleton attack players that dont have the sword and it has to be the original minecraft witherskeleton
Make a completely separate mob with the same model and texture of a wither skeleton. Then, make an on-player-update-tick procedure checking if the sword is in hand and if there's a wither skeleton nearby. When those are true, make it spawn and tame the new mob and despawn the old one. Ask if you have any questions.
The only trouble I see is actually getting the wither skeleton model, but I'm sure you can find it somewhere. Make sure it's ".java" I think
Finding the model is easy bcs i have an aplication. but the problem is the nether. thats why i want to make it real witherskeletons
and not costum. the real ones would still attack the player.
sorry i haven't read your post in full (now i did) but
how do i check if a mob is
nearby and make that it only attacks players
without the sword