Started by
Kyoshii
on
Topic category: Help with Minecraft modding (Java Edition)
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
Topic category: Help with Minecraft modding (Java Edition)
How to make a item where the mob changes mobs once clicked with a certain item in your hand?
Hello Kyoshii
> Here < is a screenshot that may help
Thank you!
Nevermind, It's not working is it because I'm using a custom entity?
Here is the procedure.
Also I changed the global trigger to "Player right clicks on entity" and its still not working.
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"
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!
Works perfectly, Thank you!