Topic category: User side tutorials
I tried to make it as simple as possible, it does require to lock the code.
- Create your default or custom 3d armor
- Modify the desired settings
- Save
- Now lock the code
- Copy the following and paste it right before the last "}" in the code
@Override public boolean canElytraFly(ItemStack stack, net.minecraft.world.entity.LivingEntity entity) { return true; } @Override public boolean elytraFlightTick(ItemStack stack, net.minecraft.world.entity.LivingEntity entity, int flightTicks) { if (!entity.level.isClientSide) { int nextFlightTick = flightTicks + 1; if (nextFlightTick % 10 == 0) { if (nextFlightTick % 20 == 0) { stack.hurtAndBreak(1, entity, e -> e.broadcastBreakEvent(net.minecraft.world.entity.EquipmentSlot.CHEST)); } entity.gameEvent(net.minecraft.world.level.gameevent.GameEvent.ELYTRA_FREE_FALL); } } return true; }
=============SPECIAL NOTE================
If needed set stack.hurtAndBreak from 1 (default value - breakable) to 0 (unbreakable)
=============SPECIAL NOTE================
Congratulations, now your armor (chestplate) will act just like an elytra ... and still have armor properties.
If you still have doubts, watch the following ...
NOTE: Apologies for the image hosting issues, one of my server admins decided to rearrange the content in it causing mapping issues.
Please ... (right click and save for future reference)
Results ...
Take off
Landing
With some creativity you could add a tick to the chestplate ... adding an additional chestplate that will switch while in air for a winged model, making it cool and more enjoyable to watch.
I would gladly like to see screenshots of your creations.
Have fun
Are where I found model of vannila elytra armor model?
Unfortunately, I have not seen any site where you can download premade 3d elytra models. Mostly I google search for wings images and/or robot wings characters to find inspiration for my wing models.
Hey, is it possible to use it without armor, im making a mod where the player can fly in survival(not using creative fly cuz its wack), i already have the procedure, i just want the player to use the elytra flying animation.
Sorry for the delayed answer, initially I tried with an item in main hand ... but it did not work. Will take a look into it.
Alright, sorry for the late reply too
Hi, it doesn't work well, I don't know why, could you help me?
Nothing, I fixed it, forgot it
Can you make the armor code doesn't need fireworks? I mean can fly itself?
Just asking 😁
I'm making an armor right now, but I don't want to use fireworks all the time on that armor, do you have a chance to make a model that goes at the same speed all the time?
Hey! I've found your code, and I have a question. Do you need the whole armor set for your code to work? I'm trying to do it with just a chestplate, and there's no errors, but when I try to fly like with an elytra, I don't fly, I just fall.
Hello again, so I found the issue. It won't save the code everytime I enter the code and save it.
@JaBaconator - you need to lock the code for that class.
Sorry ... It has been a long time without working with this type of elytra armor. I will have to recreate/test it in order to figure out the issue.
I got it to work! I used the newer one. The other one had given me an error, hence why it wouldn't save! TYSM!!!