extremeBehaviours let wither spawn charged skulls at 10%, not 0.1%
This commit is contained in:
1 parent
e26e332a6d
commit
72a3d74a97
2 files changed
+23
No files matched your search
@@ -0,0 +1,22 @@
|
|||||||
|
package carpet.mixins;
|
||||||
|
|
||||||
|
|
||||||
|
import carpet.CarpetSettings;
|
||||||
|
import net.minecraft.entity.boss.WitherEntity;
|
||||||
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
|
import org.spongepowered.asm.mixin.injection.At;
|
||||||
|
import org.spongepowered.asm.mixin.injection.Redirect;
|
||||||
|
|
||||||
|
import java.util.Random;
|
||||||
|
|
||||||
|
@Mixin(WitherEntity.class)
|
||||||
|
public class WitherEntity_extremeMixin
|
||||||
|
{
|
||||||
|
@Redirect(method = "method_6878", at = @At(value = "INVOKE", target = "Ljava/util/Random;nextFloat()F"))
|
||||||
|
private float nextFloatAmplfied(Random random)
|
||||||
|
{
|
||||||
|
if (CarpetSettings.extremeBehaviours) return random.nextFloat()/100;
|
||||||
|
return random.nextFloat();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -159,6 +159,7 @@
|
|||||||
"MobEntity_extremeMixin",
|
"MobEntity_extremeMixin",
|
||||||
"ProjectileEntity_extremeMixin",
|
"ProjectileEntity_extremeMixin",
|
||||||
"Projectile_extremeMixin",
|
"Projectile_extremeMixin",
|
||||||
|
"WitherEntity_extremeMixin",
|
||||||
|
|
||||||
"ArmorStandEntity_scarpetMarkerMixin",
|
"ArmorStandEntity_scarpetMarkerMixin",
|
||||||
"Entity_scarpetEventsMixin",
|
"Entity_scarpetEventsMixin",
|
||||||
|
|||||||
Reference in new issue
Block a user