Topic category: Help with Minecraft modding (Java Edition)
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.
why not?
@friyes I need the target entity to also appear invisible to themself
just combine it with this
@friyes Alright!
@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?
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
Then you'd have to like hide the entity's model which I don't know how you'd do
@friyes I see, thanks for the help though!
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.