Armor that makes enemies ignore players on sneak

Started by Jarz on

Topic category: Help with MCreator software

Joined Feb 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Armor that makes enemies ignore players on sneak

I'm trying to make an armor set, that while you're sneaking (and have a full set) enemies ignore you.

 

Why won't this work?

 

code

Joined Feb 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I also, in the armor…
Tue, 02/10/2026 - 17:09

I also, in the armor chestplate, call this procedure on the tick event.

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You are trying to get the…
Tue, 02/10/2026 - 17:36

You are trying to get the nearest "Block display" entity within 0.1 blocks of the player. No such entity exists, so the game is confused and crashes when you try to make all monsters in the area target something that doesn't exist.

 

You could probably solve it by spawning a block display entity, setting attack targets to it, then despawning it. But it would be a slightly weird and potentially buggy workaround. I don't have enough experience with trying to make entities not target things to know a good option for this though.

Joined Feb 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That's alright.Thanks…
Wed, 02/11/2026 - 14:57

That's alright.
Thanks anyways.

Joined Feb 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Wait a minute, the game…
Wed, 02/11/2026 - 15:03

Wait a minute, the game doesn't crash?
Nothing happened when I tried it

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Maybe try Procedures+'s "Set…
Mon, 03/16/2026 - 17:32

Maybe try Procedures+'s "Set attack target to none"?

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yeah, there is probably…
Thu, 03/26/2026 - 10:15

Yeah, there is probably something you can do with the attack target blocks to make this work. I currently don't have easy access to MCreator so I can't find the exact blocks you could use.

I think the block display targeting didn't work because block displays aren't living entities, and thus cannot be targeted by mobs.

Hope this helps! :)

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Either switch block display…
Tue, 03/31/2026 - 13:45

Either switch block display to null entity or use a logic variable set to true in the procedure above. Then trigger a procedure on entity targeting, cancel event is entity has variable=true.