Changeable Mob Left Handed Chance

This commit is contained in:
Ben Kerllenevich
2025-01-09 20:36:40 -08:00
committed by granny
parent 54b81f2b74
commit d2132cfbfa
3 changed files with 11 additions and 34 deletions

View File

@@ -65,6 +65,15 @@
}
@Override
@@ -1280,7 +_,7 @@
);
}
- this.setLeftHanded(random.nextFloat() < 0.05F);
+ this.setLeftHanded(random.nextFloat() < level.getLevel().purpurConfig.entityLeftHandedChance); // Purpur - Changeable Mob Left Handed Chance
return spawnGroupData;
}
@@ -1619,6 +_,7 @@
this.playAttackSound();
}

View File

@@ -143,8 +143,10 @@ public class PurpurWorldConfig {
}
public int entityLifeSpan = 0;
public float entityLeftHandedChance = 0.05f;
private void entitySettings() {
entityLifeSpan = getInt("gameplay-mechanics.entity-lifespan", entityLifeSpan);
entityLeftHandedChance = (float) getDouble("gameplay-mechanics.entity-left-handed-chance", entityLeftHandedChance);
}
public boolean infinityWorksWithoutArrows = false;