Custom Armor wich can turn Invisible

Started by Emperor_Jp1 on

Topic category: Help with MCreator software

Active 1 month ago
Joined Dec 2024
Points:
49

User statistics:

  • Modifications: 0
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 13
Custom Armor wich can turn Invisible

How do I make an Armor that can be transparant when you press a keybind. I am making the armor with geckolib.

Active 20 hours ago
Joined Feb 2024
Points:
382

User statistics:

  • Modifications: 1
  • Forum topics: 41
  • Wiki pages: 0
  • MCreator plugins: 1
  • Comments: 124
You could do this by adding…
Thu, 12/26/2024 - 21:09

You could do this by adding a state to the armor and having it change when the keybind is pressed. Then unlock the code for it and make it so when the armor is of that state to display an empty texture and when the state is false to show the normal texture or model.

Active 1 month ago
Joined Dec 2024
Points:
49

User statistics:

  • Modifications: 0
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 13
How do you make a state? And…
Mon, 12/30/2024 - 11:56

How do you make a state? And what do you mean by unlocking the code?

Active 20 hours ago
Joined Feb 2024
Points:
382

User statistics:

  • Modifications: 1
  • Forum topics: 41
  • Wiki pages: 0
  • MCreator plugins: 1
  • Comments: 124
Sorry about that. I thought…
Mon, 12/30/2024 - 20:51

Sorry about that. I thought you could add states to armor like you can items and blocks but it doesn't work. I found a way to turn the player invisible but not the armor. I have 2 workarounds:

  • Make the armor get stored and deleted and increase the player attributes. Then just set back the item when you want it back and reset the player attributes.
  • Or you can create 2 armor sets. One normal and one invisible. You could track the data of the normal one and the invisible one and then just have one replace the other when called. This would be the better option in my opinion.
Active 1 month ago
Joined Dec 2024
Points:
49

User statistics:

  • Modifications: 0
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 13
Ok, thank you!
Fri, 01/03/2025 - 11:53

Ok, thank you!