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
Is there any way to make it get powered when you press spacebar instead of using rockets or another extra item?
This looks super cool for the mod I have in mind, but I need to ask 2 questions first:
1, does this work in the newest version of MCreator?
2, would it be possible to give this infinite boost/momentum, (like when you use a firework),?
1- Will work since it is just adding a few lines of code that enables elytra flying properties to an armor.
2- It could be possible, if you create a momemtum effect for the player while flying. You could make it infinite, if combining the proper procedures or creating a tick for when it is elytra flying at certain height or something similar. Basically trigger a boost with spacebar (any custom key) or experiment with ticks while in air condition.
MCreator has many ways to emulate the behavior. I just enabled the elytra flying with the code provided, if you find errors on the code for updated versions just let me know.
I am in mcreator 2023.3 fabric generator, can you make one for geckolib armor in FABRIC?
Not that good with fabric, try this ...
https://www.curseforge.com/minecraft/mc-mods/elytra-utilities-fabric