Jump to content

[1.15.1] How can I create my own custom "Elytra"?


Recommended Posts

Posted

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

Posted

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).

  • Thanks 1

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.

Posted (edited)
  On 1/18/2020 at 5:35 AM, 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).

Expand  

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 by SciPunk
Uncompleted text
  • Like 1
Posted

Yep, that's the relevant section.

  • Like 1

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.

Posted
  On 1/20/2020 at 6:17 AM, SciPunk said:

I'm trying to get it to work only when you press a certain key

Expand  

You can use a key bind to set a field somewhere (1.14.4 example).

  On 1/20/2020 at 6:17 AM, SciPunk said:

any doc or guide I could use to render my custom elytra?

Expand  

Rendering changed a lot in 1.15.1. Your best bet is to look the vanilla code.

  • Thanks 1

About Me

  Reveal hidden contents

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)

Posted

I'm sure you can find out with a simple search...937838063_ScreenShot2020-01-26at6_36_40pm.png.23649e53e80ce43aa9b093a572a9e2b2.png

About Me

  Reveal hidden contents

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.