#Using EntityElytraEvents to give my chestplate elytra flight

2 messages · Page 1 of 1 (latest)

split zealot
#

How can I do this?

#

This was the solution:

        EntityElytraEvents.CUSTOM. register((entity, tickElytra) -> {
            if(entity.getEquippedStack(EquipmentSlot.CHEST).getItem() == this || entity.getEquippedStack(EquipmentSlot.CHEST).getItem() == Items.ELYTRA){
                return true;
            }
            return false;
        });