Thanks! I kind of winged it with the code because I couldn't find any information about it. I see what you mean about the repeated variants. again, thanks a lot!
I mostly just want to know what some of the textures for GUI are. Java GUI in my opinion is a lot easier to retexture, because it just gives you the image of the UI. but on bedrock you have to edit the parts of the UI, you edit one thing, go test in game, and there is one texture that isn't edited, and you look up "where is this little pixels' texture ". and you know the internet, it gives you something totally different.
I know, that's what I have been using. I just want something that pretty much deletes everything except the GUI textures that I need, or a tutorial or something that tells me what most of the GUI textures are, or what to delete. Thank you for trying to help though.
I mostly just want to know what some of the textures for GUI are. Java GUI in my opinion is a lot easier to retexture, because it just gives you the image of the UI. but on bedrock you have to edit the parts of the UI, you edit one thing, go test in game, and there is one texture that isn't edited, and you look up "where is this little pixels' texture ". and you know the internet, it gives you something totally different.