#Making a Cosmetic Armor Systen

1 messages · Page 1 of 1 (latest)

delicate oyster
#

How could I (if its even possible) make a system where players could open a GUI and add custom helmet or chestplate items to mimic plugins like HMC Cosmetics? From what I understand they work by having an armorstand ride the player and take their rotation and just give them the armor.

Is this possible to do and if so, how?
*the only reason I'd want to redo HMC cosmetics is to make sure that its lightweight and I can update it whenever

tribal lance
#

Have it ride the player by an offset

strange hazel
#

backpacks/wings seem to be an armor stand, you could use item display too
other stuff is prolly something along the lines of sending fake equipment packets

#

if you want to be sure you could dig thought the source code since its public

delicate oyster
rotund trail
#

make sure to use delete instead of kill for the armor stand, so it doesn't make its breaking sound

delicate oyster
#

Im running into an issue with first person camera tho, the models clip in front of the player and make it impossible to see. Any way to make the player see the cosmetic in third person but not first>

rotund trail
#

Honestly not sure, but i'm guessing not as that's a client thing and the server has no idea what perspective the player is looking.

delicate oyster
rotund trail
#

you can hide the armorstand from the player to make it visible to everyone but them, but it still would make it invisible to them in third person.

#

Although I just had a thought. Since you're already using resourcepacks you could potentially make another model based on the third-person perspective (which BlockBench can do) and make it show up in only that way (i don't remember what update that allowed, but it's definitely above 1.21)

delicate oyster
strange hazel
#

well you see

#

the problem is it is riding an armor stand

#

its not equipped on the player

#

so the perspective components dont really matter

rotund trail
#

true, i was thinking for the model itself. But I misremembered, as those components are for the held item, not the item on the head in this case. So sadly... don't think this is really possible.

#

One thing I recommend is either:

  1. giving the armor stand the Marker byte tag (SkBee) so the hitbox is removed (otherwise it can cause issues with right-clicking), or
  2. Change the armor stand for a item display (SkBee or Skript, depending on version)
#

Another note, vanilla Minecraft now offers the ability for items to be placeable on the head or armor utilizing components, so the gui would just be... cosmetic

acoustic totem
#

https://www.youtube.com/watch?v=mBK6S0ZgYks
This could help - it uses vanilla shaders, which can be modified to not render anything too close to the camera (from my understanding, this is fairly simple). The guy has a library/generator you can use to make the resource pack, and the models are tied to items/NBT. It also removes the 20 TPS limit for servers, allowing for more fluid and natural cosmetics, and is of course more lightweight on the server, which does almost nothing.

slate sparrow
#

how did you make the interpolation clean for tpeing an armor stand? i tried to do it but it had a delay at least client side