Posted January 18, 20205 yr I'm trying to figure out how can I create an item/armor which behaves just like Elytra, tried to see vanilla code of it, but I can't figure out much, I have an armor and I'd like to add the elytra model/ function to it
January 18, 20205 yr The elytra flying code isn't handled by the elytra at all, but rather the player entity code (which checks for specifically the elytra item). Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
January 18, 20205 yr Author 15 hours ago, Draco18s said: The elytra flying code isn't handled by the elytra at all, but rather the player entity code (which checks for specifically the elytra item). Oh ok thanks, the closest thing I found was this public boolean func_226566_ei_() { if (!this.onGround && !this.isElytraFlying() && !this.isInWater()) { ItemStack itemstack = this.getItemStackFromSlot(EquipmentSlotType.CHEST); if (itemstack.getItem() == Items.ELYTRA && ElytraItem.isUsable(itemstack)) { this.func_226567_ej_(); return true; } } it is kinda hard to figure things out without mappings, but I'm trying my best lol Edited January 18, 20205 yr by SciPunk Uncompleted text
January 19, 20205 yr Yep, that's the relevant section. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
January 20, 20205 yr Author On 1/18/2020 at 8:06 PM, Draco18s said: Yep, that's the relevant section. Thanks, I'm trying to get it to work only when you press a certain key, any doc or guide I could use to render my custom elytra? Thanks again for helping me out
January 20, 20205 yr 51 minutes ago, SciPunk said: I'm trying to get it to work only when you press a certain key You can use a key bind to set a field somewhere (1.14.4 example). 51 minutes ago, SciPunk said: any doc or guide I could use to render my custom elytra? Rendering changed a lot in 1.15.1. Your best bet is to look the vanilla code. About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
January 21, 20205 yr Author 22 hours ago, Cadiboo said: You can use a key bind to set a field somewhere (1.14.4 example). Rendering changed a lot in 1.15.1. Your best bet is to look the vanilla code. Thanks! got the key bind set, now I only got to figure out the rendering
January 25, 20205 yr Author On 1/20/2020 at 1:10 AM, Cadiboo said: You can use a key bind to set a field somewhere (1.14.4 example). Rendering changed a lot in 1.15.1. Your best bet is to look the vanilla code. Hi, again where could I look up the vanilla code for the elytra render system? I'm completely lost
January 26, 20205 yr I'm sure you can find out with a simple search... About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
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.