Invisible armor

Started by oBreach on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Invisible armor

Im trying to make a mod based on the sword Excalibur and im planning to make some armor that turns you invisible when you click a keybind. I've already done that but I want the armor to be invisible as well. I saw this post,  https://mcreator.net/forum/66701/make-someone-and-their-armour-invisible, but I haven't been able to follow along. Does anyone know anything on how to do this? 
 

Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@Overridepublic String…
Thu, 06/06/2024 - 17:08
    @Override
public String getArmorTexture(ItemStack stack, Entity entity, EquipmentSlotType.LEGS, String type){
if (entity.isInvisible()) {
return "invisinbleatmor.png";
}
return "arcson:textures/models/armor/dekruutian_layer_" + (slot == EquipmentSlotType.LEGS ? "2" : "1") + ".png";
}
 
Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think I know how (kind of)…
Thu, 06/06/2024 - 19:25

I think I know how (kind of). Make a keybind, then make that keybind activate a procedure. the procedure checks if you are wearing the armor, if yes, then it can give you the invisibilty effect. idk any more than this on this topic though.

Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ive done that but i need to…
Fri, 06/07/2024 - 16:46

ive done that but i need to make the armor invis