How do I make a mob change into another mob when right clicked with a certain item?

Started by Kyoshii on

Topic category: Help with modding (Java Edition)

Last seen on 19:54, 4. Apr 2021
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make a mob change into another mob when right clicked with a certain item?
Sat, 04/03/2021 - 05:02 (edited)

How to make a item where the mob changes mobs once clicked with a certain item in your hand?

Edited by Kyoshii on Sat, 04/03/2021 - 05:02
Last seen on 01:18, 28. Mar 2024
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hello Kyoshii   > Here < is…
Fri, 04/02/2021 - 16:33

Hello Kyoshii

 

> Here < is a screenshot that may help

Last seen on 19:54, 4. Apr 2021
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you!
Fri, 04/02/2021 - 19:07

Thank you!

Last seen on 19:54, 4. Apr 2021
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Nevermind, It's not working…
Fri, 04/02/2021 - 19:36

Nevermind, It's not working is it because I'm using a custom entity?

Last seen on 19:54, 4. Apr 2021
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Here is the procedure.
Fri, 04/02/2021 - 20:42

Here is the procedure.

Last seen on 19:54, 4. Apr 2021
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Also I changed the global…
Sat, 04/03/2021 - 00:27

Also I changed the global trigger to "Player right clicks on entity" and its still not working.

Last seen on 08:14, 28. Nov 2023
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
it can be fixed easily: just…
Sat, 04/03/2021 - 02:11

it can be fixed easily:

just change "event/target entity" on "item in mainhand of [event/target entity]" to "source entity" and keep the global trigger as "player right clicks on entity"

 

Last seen on 08:14, 28. Nov 2023
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
basically, in that kind of…
Sat, 04/03/2021 - 02:20

basically, in that kind of procedure: the entity that the player right-clicks (which can be either vanilla or custom entity btw) is the target entity and the player is the source entity in the dependencies. hope this helps you make procedures like that in the future!

Last seen on 19:54, 4. Apr 2021
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Works perfectly, Thank you!
Sat, 04/03/2021 - 05:01

Works perfectly, Thank you!

.