Started by
Snow256
on
Topic category: Help with Minecraft modding (Java Edition)
I'm new to using MCreator, and I'd like to know how to set up an item so that, when I right-click while holding it on a zombie, the zombie gets removed, and another mob appears in its place.
use the global trigger on rightclick on mob. Then if item in mainhand of source entity is your item, despawn event/target entity
spawn mob of type mob name
Thank you very much, that helped me a lot. However, I still can't make it work, only with the zombies.
so after of item mainhand of source entity is your item do:
if event/target entity is subtype of zombie
then despawn event/target entity
finally spawn mob of type mob name
The if event/target entity sub type block is in the logic section
thank you very much