retire extreme behaviours, added moreBlueSkulls
This commit is contained in:
1 parent
b2cb70c133
commit
8101abb431
14 files changed
+5
-273
No files matched your search
@@ -0,0 +1,25 @@
|
||||
package carpet.mixins;
|
||||
|
||||
|
||||
import carpet.CarpetSettings;
|
||||
import net.minecraft.util.RandomSource;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Redirect;
|
||||
|
||||
import net.minecraft.world.entity.boss.wither.WitherBoss;
|
||||
|
||||
@Mixin(WitherBoss.class)
|
||||
public class WitherBoss_moreBlueMixin
|
||||
{
|
||||
@Redirect(method = "performRangedAttack(ILnet/minecraft/world/entity/LivingEntity;)V", at = @At(
|
||||
value = "INVOKE",
|
||||
target = "Lnet/minecraft/util/RandomSource;nextFloat()F")
|
||||
)
|
||||
private float nextFloatAmplfied(RandomSource random)
|
||||
{
|
||||
if (CarpetSettings.moreBlueSkulls) return random.nextFloat()/100;
|
||||
return random.nextFloat();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user