No Boost

Quick rating

Community listing page, reviews may not be monitored by the author.

No Boost

No reviews yet

Removes the ability to boost with fireworks while wearing Elytra

Mod Loaders
Minecraft

About

Description

Removes the ability to rocket boost with the elytra in survival. Simple mixin please use kindly.

Removes the ability to rocket boost with the elytra. Simple mixin please use kindly.

If you want to reference see below.

@Mixin(FireworkRocketEntity.class)
public abstract class FireworkRocketEntityMixin {

    @Redirect(
        method = "tick",
        at = @At(
            value = "INVOKE",
            target = "Lnet/minecraft/world/entity/LivingEntity;isFallFlying()Z"
        )
    )
    private boolean preventElytraBoost(LivingEntity instance) {
        if (instance instanceof Player) {
            return false;
        }
        return instance.isFallFlying();
    }
    
}