Make someone and their armour invisible

Started by CyberAssasian on Thu, 09/24/2020 - 20:56

Topic category: Help with modding (Java Edition)

Last seen on 20:01, 24. Nov 2020
Joined Aug 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Make someone and their armour invisible
Thu, 09/24/2020 - 20:56

I am making a ninja mod with an armour that makes you invisible. Using the potion effect has the problem of your armour still showing up.

Is there a solution?

Last seen on 18:58, 19. Nov 2020
Joined Nov 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
go into your textures and…
Thu, 10/01/2020 - 23:51

go into your textures and edit your armor, select white and turn the opacity to 0, use the fill tool and boom, invisible armor 

Last seen on 20:01, 24. Nov 2020
Joined Aug 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
It should only be invisible…
Sun, 10/18/2020 - 09:38

It should only be invisible when the full set is on and on a cooldown thing

Last seen on 18:04, 26. Nov 2020
Joined Nov 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
making armor invisible…
Sun, 10/18/2020 - 17:18

making armor invisible requires a tiny bit of coding.

first make a blank 64x32 texture. then lock and edit the armor element, find the lines:

protected ResourceLocation getEntityTexture(Entity entity) {
    return new ResourceLocation("yourmodid:textures/your_helmet.png");
}

and edit it like this:

protected ResourceLocation getEntityTexture(Entity entity) {
    if (entity.isInvisible()) {
        return new ResourceLocation("yourmodid:textures/blank.png");
    }
    return new ResourceLocation("yourmodid:textures/your_helmet.png");
}

kind of like that.