How to make a tamed mob sitting, following, wandering by right clicking

Started by RivalHD on Wed, 04/28/2021 - 14:19

Topic category: Help with modding (Java Edition)

Last seen on 15:48, 29. Apr 2021
Joined Jun 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to make a tamed mob sitting, following, wandering by right clicking
Wed, 04/28/2021 - 14:19

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?

Last seen on 17:01, 11. Jun 2021
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
----------------------------…
Wed, 04/28/2021 - 19:35

------------------------------------------------------------

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!!!

------------------------------------------------------------

Last seen on 17:01, 11. Jun 2021
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
If you don't know how to…
Wed, 04/28/2021 - 19:36

If you don't know how to assemble the code, please ask, I can give you some visual example using images.

Last seen on 15:48, 29. Apr 2021
Joined Jun 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Well, I don't know..
Thu, 04/29/2021 - 15:50

Well, I don't know..

Last seen on 17:01, 11. Jun 2021
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Sorry I couldn't answer…
Thu, 04/29/2021 - 21:23

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).

============================================

Last seen on 17:01, 11. Jun 2021
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
============================…
Thu, 04/29/2021 - 21:24

============================================

Part1:"Making The Procedures For Pet_Tracker.

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

============================================

Last seen on 17:01, 11. Jun 2021
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
============================…
Thu, 04/29/2021 - 21:24

============================================

Part2:  "Making The Procedures For Custom Pet.

============================================

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

============================================

Last seen on 17:01, 11. Jun 2021
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Hope the tutorial worked. …
Thu, 04/29/2021 - 21:27

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!

Last seen on 17:01, 11. Jun 2021
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
----------------------------…
Thu, 04/29/2021 - 21:34

---------------------------------------

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

---------------------------------------