No Boost

模组

· 作者 ActiveRadar

移除使用烟花对鞘翅的加速效果

0 本站下载 0 关注 更新于 1 年前

最新 1.1 · 1.20.6 · Forge

一键开服(送7天)

移除了鞘翅配合火箭加速的能力。这是一个简单的 Mixin,请友善使用。

如需引用,请参考以下代码:

@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();
    }
    
}

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源