No Boost
作者:rebot | 分类:模组
Minecraft 版本: 1.20.1 1.20.2 1.20.3 1.20.4 1.20.5 1.20.6
平台: forge
标签: game-mechanics transportation
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();
}
}请登录后举报
暂无评论,抢个沙发吧~