Started by
FerretWithACatHat
on
Topic category: Help with Minecraft modding (Java Edition)
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?
go into your textures and edit your armor, select white and turn the opacity to 0, use the fill tool and boom, invisible armor
It should only be invisible when the full set is on and on a cooldown thing
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:
and edit it like this:
kind of like that.
So I'm trying to do this whole invisible armor thing as well that's tied to the boots. So far I have it so that the boots give the invisibility potion effect to the player if they're in a light level that's less than 5. I want to be able to make the entire player invisible (including the armor) when the conditions are met. Here's the thing though, I made a blank 64 x 32 texture, I locked the armor set element then went to edit it's code but I'm not seeing either of those lines of code. There's some similarities but nothing completely matching, and by that I mean "protected" and "return new" aren't showing up at all among some other differences.
what version minecraft? show me that piece of code that has getEntityTexture
1.15.3, it's the farthest I can go with MCreator at the moment.
public String getArmorTexture(ItemStack stack, Entity entity, EquipmentSlotType slot, String type) {
return "arcson:textures/models/armor/dekruutian_layer_" + (slot == EquipmentSlotType.LEGS ? "2" : "1") + ".png";
}
ah, i made a mistake in the previous post. should be overriding the getArmorTexture method:
How do I do this for 1.16.5?
Would it be possible to do this with held items as well?
I know this is old, but when I do it, the blank texture shows up as the magenta and black of a missing texture. The directory for the file is right, though. Maybe it's an issue with more recent versions?
you might be able to use a geckolib animated armor and run an animation that turns the armor invisible when you klick a button or something