Topic category: Help with Minecraft modding (Java Edition)
Hello there... I should just introduce myself somewhere...Idunno
Anyways,I've been trying to start a mod (This also helps me learn coding AND most importantly,spriting),and well,I wanted to (as a start) right-click with a specific item on the ground and spawn a friendly zombie that could attack other hostile mobs (spiders,skeletons,zombies,creepers,etc...)
The thing is,if I spawn THAT zombie,I GUESS it's not going to be friendly,right? (Haven't tried anything right now. I'm just here,with the events)
So,if I want to work on that idea,should I make a ton of events (if possible)? Or just go with a custom code? If so,any tips of where I should start? ;X
Minecraft 1.8.9,if ANYONE'S GOING TO ASK! I dunno... It may help,perhaps? I dunno? Yay?
OwO
Well, as long as you don't make that friendly zombie hostile, and from what I understand, depending on the AI you set, it will attack hostile mobs.
@#1 Ok...?
I just asked if it's possible to do this WITH MCREATOR itself (just adding variables and such),or if I have to edit some of the code itself.. you know: get my hands dirty and such...
And no,the zombie/skeleton/whatever would be friendly to the player,24/7,even if you attack him. BUT will be hostile to other hostile mobs.
but that "turn them hostile if you hit them" sounds cool... just like the wolves. right?it can be done with mcreator. all you have to do is make a mob that looks like a zombie and when you add a custom AI just make it atack the mobs that you want it to atack.
Set it to both act aggressively twords and attack on collide with any mob you want it to kill. There is no real way to keep it by the players side as of yet without coding custom java.
No way to edit a post :/
If you want them to attack if you have attacked them, then set the AI it's based on to Zombie Pigman... you will still have to set up the things I said in my other post.
Set the AI like a wolf, where to tame/befriend that mob, you give it a certain item. You can also set it to follow you and attack the mobs that you attack
As long as your mob is having every hostile mobs on Priority 10 ( or 20 ) with Attack on Collide, it will act like an Iron Golem.