Posted June 29, 20205 yr Hi, I'm trying to make a custom Elytra item, I have extended ElytraItem and registered the item, but I can't figure out how to render it/Get it to go in the chestplate shot. Thanks in advance, Kid Koder Edited June 30, 20205 yr by KidKoderMod033109 Website: http://kidkoder.net GitHub: https://github.com/Uncodeable864
June 29, 20205 yr Rendering and the chestplate slot both are specified explicitly to the Elytra object and no other. If you want to get around that, you would need to register your own layer on the player and override IForgeItem#getEquipmentSlot with the slot you want the eltyra to go in.
June 29, 20205 yr Author 6 minutes ago, ChampionAsh5357 said: override IForgeItem#getEquipmentSlot How would I go about doing that? Here is my code: public class NetheriteElytraArmor extends ArmorItem { public NetheriteElytraArmor(IArmorMaterial materialIn, EquipmentSlotType slot, Properties p_i48534_3_) { super(materialIn, slot, p_i48534_3_); } } Website: http://kidkoder.net GitHub: https://github.com/Uncodeable864
June 29, 20205 yr Author https://github.com/KidKoder09923/Witchcraft-Mod-for-Minecraft-1.16 Here is the mod source Edited June 29, 20205 yr by KidKoderMod033109 Website: http://kidkoder.net GitHub: https://github.com/Uncodeable864
June 29, 20205 yr 16 minutes ago, KidKoderMod033109 said: How would I go about doing that? You override the method? Even though if you're extending ArmorItem the only thing you need to do is specify the slot given in the constructor. As for the rendering, look at ElytraLayer for your base line and then apply for each skin map in the EntityRendererManager.
June 29, 20205 yr Author 15 minutes ago, ChampionAsh5357 said: apply for each skin map in the EntityRendererManager. Ok. How would that work? Website: http://kidkoder.net GitHub: https://github.com/Uncodeable864
June 29, 20205 yr Get the PlayerRenderer for the default and slim skin maps and then call addLayer for both of them.
June 29, 20205 yr Author I still don't understand where to put this, is there anywhere where I could find an example Website: http://kidkoder.net GitHub: https://github.com/Uncodeable864
June 29, 20205 yr Author I think I found, I'm now putting together the texture Website: http://kidkoder.net GitHub: https://github.com/Uncodeable864
June 29, 20205 yr Author Great! Got it to work. Now I just have to add the flight ability Website: http://kidkoder.net GitHub: https://github.com/Uncodeable864
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.