#Stop Armor from Rendering with Tag?

1 messages · Page 1 of 1 (latest)

burnt moat
#

I want to make it so that under certain conditions players can go COMPLETELY invisible even with armor on. I thought I could just remove a component group or whatever in a resource pack, but it seems like there's a trick? anyone got ideas?

I was hoping that I could give a player a tag, and then armor no longer renders on them until the tag is removed, if possible without Script API because I don't know that.

bold zinc
#

well you could use a behavior pack with player.json and then use environment sensor to test if the player has the tag
but it also means you have to use a behavior pack and also can't use another addon that replaces the player.json

#

but if you still want to do it here's how:

  1. go to player.json and inside minecraft:environment_sensor>triggers
  2. inside triggers, add a filter that test if the player has a tag or not. If they do, make a event that gives the player a certain variant or identifier that can be detected by molang
  3. After that, go to armor render controllers and make it only appear IF the player does not have the tag
north oxide
#

In #2 above:
event adds a component group
inside component group, use something like the skin_id or variant componentjson "component_groups": { "color:chicken_white": { "minecraft:skin_id": {"value": 0} }, "color:chicken_orange": { "minecraft:skin_id": {"value": 1}} }
Note: you will need something that does the opposite too, if they do not have the tag, set the skin_id to something different - example of having bothjson { "filters": { "all_of": [ {"test":"has_tag","operator":"!=","value":"blah_blah"}, {"test":"is_underground","operator":"==","value":false} ] }, "event": "ev:tag_home_turf" }, { "filters": { "all_of": [ {"test":"has_tag","value":"blah_blah"}, {"test":"is_underground"} ] }, "event": "ev:untag_home_turf" }

in #3 above:
example for render controller in the resource pack:json "textures": [ "Array.textures[query.skin_id]" ], "arrays": { "textures": { "Array.textures": [ "Texture.white", "Texture.orange"] see how the skin id is used to select the texture to use. So you can use it like a 0/1 0=flase and 1=true

burnt moat
warm drum
#

Just set player scale to 0

#

Now armor is not visible