Started by
RivalHD
on
Topic category: Help with Minecraft modding (Java Edition)
I want to make a tameable mob sitting (or staying), following or wandering by right clicking
For example like this: *Right click* -> it sits/stays, *Right clock again* -> It follows you, *Right click again* -> It wanders around like normal mobs. And all that again by right clicking. So there are three commands for the pet instead of two like wolf or cat (Sitting or following).
But I want to know how to do that?
------------------------------------------------------------
Read this thread to make mobs follow you (Bind"When right clicked on entity" Trigger): https://mcreator.net/forum/73218/ways-make-entitys-follow-other-entitys…
------------------------------------------------------------
READ THE MY THIRD ATTEMPT!!!
------------------------------------------------------------
If you don't know how to assemble the code, please ask, I can give you some visual example using images.
Well, I don't know..
Sorry I couldn't answer earlier, was doing my homework..
============================================
Logic: The "Follow Owner Mechanic" is going to be built on using /team command..
----------------------------------------
Example: If a zombie is an a team with a villager, he won't be aggressive at each other..
----------------------------------------
MPORTANT TO NOTE: If the entity/mob is in two teams at once, entitys will be aggressive at each other (as usual).
============================================
============================================
WE ARE ADDING A NEW MOB FOR THIS BECAUSE THE PLAYER CAN ALLREADY BE IN A TEAM! UNLIKE OUR Pet_Tracker ENTITY! (Read the "IMPORTANT TO NOTE" section above!).
============================================
Step1: Make a new entity with no AI goals. Set shadow size to 0. Set the entitys hotbox to 0; 0. Remove the hurt and death sound
============================================
Step2: Rewrite all the code below.
----------------------------------------
Heres the first code: https://ibb.co/sv9x0PG (If the Pet_Tracker is pushing you, make it /tp a little higher)
Heres the second code: https://ibb.co/X4mLtKh
============================================
============================================
============================================
Step1: Make Youre_Pet be aggressive at Pet_Tracker: https://ibb.co/qggkNdC
============================================
Step2: Rewrite all the code below.
----------------------------------------
Heres the first code: https://ibb.co/hKZ5JHM
Heres the second code: https://ibb.co/dWBrxtG
============================================
Hope the tutorial worked.
And please tell me if it did, I made the tutorial as clear as possible to understand!
If you have questions, ask!
---------------------------------------
And if you can please answer my forums I need help really badly. Im working on a BIG mod (you can see a tamed iguanodon in the new "Jurassic Swamp Biome" On my icon)
Here are the links to the Forums..
---------------------------------------
First link: https://mcreator.net/forum/73629/make-mobs-see-thru-solid-blocks-vex-bl…
Second link: https://mcreator.net/forum/73218/ways-make-entitys-follow-other-entitys…
Third link: https://mcreator.net/forum/73411/count-mobs-area
---------------------------------------