Replace mobs

Started by Snow256 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Replace mobs

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.

Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
use the global trigger on…
Thu, 07/20/2023 - 02:32

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

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you very much, that…
Thu, 07/20/2023 - 05:51

Thank you very much, that helped me a lot. However, I still can't make it work, only with the zombies.

Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
so after of item mainhand of…
Sat, 07/22/2023 - 00:13

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

Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The if event/target entity…
Sat, 07/22/2023 - 00:14

The if event/target entity sub type block is in the logic section

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thank you very much
Sat, 07/22/2023 - 02:16

thank you very much