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 Minecraft modding (Java Edition)

Active 4 years ago
Joined Apr 2021
Points:
576

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5
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
Active 1 month ago
Joined Apr 2020
Points:
788

User statistics:

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

Hello Kyoshii

 

> Here < is a screenshot that may help

Active 4 years ago
Joined Apr 2021
Points:
576

User statistics:

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

Thank you!

Active 4 years ago
Joined Apr 2021
Points:
576

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5
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?

Active 4 years ago
Joined Apr 2021
Points:
576

User statistics:

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

Here is the procedure.

Active 4 years ago
Joined Apr 2021
Points:
576

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5
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.

Active 1 month ago
Joined Aug 2020
Points:
932

User statistics:

  • Modifications: 3
  • Forum topics: 20
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 379
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"

 

Active 1 month ago
Joined Aug 2020
Points:
932

User statistics:

  • Modifications: 3
  • Forum topics: 20
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 379
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!

Active 4 years ago
Joined Apr 2021
Points:
576

User statistics:

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

Works perfectly, Thank you!

.