How can I make the player invisible without using vanilla's Invisibility potion effect

Started by NeonCreeper4003 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I make the player invisible without using vanilla's Invisibility potion effect

I'm attempting to make a potion effect that works like Shadow Form from Minecraft Dungeons; it should make the player invisible, increase their attack damage, and be removed once the player attacks an entity.

I already know how to make the effect increase the player's damage and how to remove it when they attack something, but I don't know how to make them invisible while affected by it. I do not want to utilize vanilla Minecraft's Invisibility status effect as Shadow Form should also hide the player's armor and be able to co-exist with Invisibility without affecting it.

While it'd be preferable if I could do this in procedures, I have a strong feeling that I will need to write custom code for this.

 

Versions are MCreator 2025.2, Minecraft 1.21.1, NeoForge 21.1.176

RedWire's Plugin is present if that could potentially be useful here.

Joined Aug 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@friyes I need the target…
Sat, 08/30/2025 - 19:29

@friyes I need the target entity to also appear invisible to themself

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
just combine it with this
Sat, 08/30/2025 - 19:32

just combine it with this

Joined Aug 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@friyes Odd questions but…
Sat, 08/30/2025 - 19:56

@friyes Odd questions but would I need to reverse the effects of the custom code snippet to reveal the mob once the effect wears off? Or does it automatically reveal the mob at some point? Also does it work for mobs in singleplayer?

Joined Aug 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Also as a side effect of…
Sat, 08/30/2025 - 20:01

Also as a side effect of removing the entity for Shadow Form, the player cannot melee attack entities who are under the effect of Shadow Form which is undesirable

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Then you'd have to like hide…
Sat, 08/30/2025 - 20:03

Then you'd have to like hide the entity's model which I don't know how you'd do

Joined Aug 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@friyes I see, thanks for…
Sat, 08/30/2025 - 20:04

@friyes I see, thanks for the help though!

Joined Aug 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Took me a while but I…
Sat, 08/30/2025 - 22:08

Took me a while but I managed to figure it out! Custom code is actually alot easier than I expected it to be so I'll probably be using it alot more.