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();
}
}
Совместимость
Ссылки
Создатели
Детали
Лицензия:MIT
Опубликован:3 месяца назад
Обновлён:3 месяца назад

