How to make Warden not-hostile to my custom mob (2025.2)

Started by BryAstro on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make Warden not-hostile to my custom mob (2025.2)

Version 2025.2 (1.21.4 Neoforge)

Hello, I would like to make a mob that acts as an ally to the Warden? I am working on a mob that is like a much weaker version of the Warden, sort of like it's minion, and I would like to know how can I make the Warden non-hostile towards my custom mob. I already posted a topic similar to this, but disappointingly, I had no answers. 

(I also asked from the previous thread on how to make my custom mob hostile to everything except it's own kind, but don't worry about that, I know how to do it and I only mentioned it in case someone was going to bring that part up.)

As I said, help would be very appreciated.  

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Global procedure with the…
Sat, 07/26/2025 - 15:26

Global procedure with the When entity sets it's attack target trigger:

IF source entity is of mob (sub)type [your mob]

AND target event entity is of (sub)type Warden

DO Cancel event trigger

(if it doesent work try switching the Warden and your mob's places.)

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
>The selected global trigger…
Sun, 07/27/2025 - 06:54

>The selected global trigger is not cancellable.

...