Compare commits

..

No commits in common. "3108334b23873b21a0afb4cea7bf3ba4c84639fe" and "0eb018a88c658ff1c3e397bccae0f664c28b5689" have entirely different histories.

3 changed files with 1 additions and 54 deletions

View file

@ -1,23 +0,0 @@
package xyz.nearmisses.patience.mc_rebalance.mixin.mob;
import net.minecraft.world.entity.ai.attributes.AttributeSupplier;
import net.minecraft.world.entity.ai.attributes.Attributes;
import net.minecraft.world.entity.monster.Monster;
import net.minecraft.world.entity.monster.piglin.PiglinBrute;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
@Mixin(PiglinBrute.class)
public class PiglinBruteTweak {
@Inject(method="createAttributes", at=@At("RETURN"), cancellable=true)
private static void createAttributes(CallbackInfoReturnable<AttributeSupplier.Builder> cir) {
cir.setReturnValue(Monster.createMonsterAttributes()
.add(Attributes.MAX_HEALTH, 50.0F)
.add(Attributes.MOVEMENT_SPEED, 0.35F)
.add(Attributes.ATTACK_DAMAGE, 3.0F) // Default 7, cumulative with axe change = 12
);
}
}

View file

@ -1,28 +0,0 @@
package xyz.nearmisses.patience.mc_rebalance.mixin.mob;
import net.minecraft.world.entity.EntityType;
import net.minecraft.world.entity.monster.Monster;
import net.minecraft.world.entity.monster.Zombie;
import net.minecraft.world.level.Level;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
@Mixin(Zombie.class)
public class ZombieRework extends Monster{
protected ZombieRework(EntityType<? extends Monster> entityType, Level level) {
super(entityType, level);
}
@Inject(method="tick", at=@At("TAIL"))
private void sprintNearToTarget(CallbackInfo ci){
if(this.getTarget()!=null && this.getTarget().position().distanceTo(this.position())<8){
this.setSprinting(true);
}
if(this.isSprinting() && this.getTarget()==null) {
this.setSprinting(false);
}
}
}

View file

@ -14,10 +14,8 @@
"mob.EnderDragonHitRateCap", "mob.EnderDragonHitRateCap",
"mob.HappyGhastTweak", "mob.HappyGhastTweak",
"mob.MagmaCubeTweak", "mob.MagmaCubeTweak",
"mob.PiglinBruteTweak",
"mob.WardenRework", "mob.WardenRework",
"mob.WitherSkeletonRework", "mob.WitherSkeletonRework"
"mob.ZombieRework"
], ],
"injectors": { "injectors": {
"defaultRequire": 1 "defaultRequire": 1