Configurable farmland trample height

This is _not_ in block height or an exact science. During my testing I found very inconsistent values for the fallDistance variable. Here are the results of those tests (https://imgur.com/BojltJF):

Value set -> Actual fall distance needed to trample
   1.0 -> 1.25
   1.5 -> 1.75
   2.0 -> 2.25
   2.5 -> 2.87
   3.0 -> 3.5
   3.5 -> 4.25
   4.0 -> 4.25
   4.5 -> 5.0
   5.0 -> 5.87
   5.5 -> 5.87
This commit is contained in:
BillyGalbreath
2025-01-12 14:15:15 -08:00
committed by granny
parent 3507102ce2
commit 17faace258
3 changed files with 11 additions and 56 deletions

View File

@@ -935,6 +935,7 @@ public class PurpurWorldConfig {
public boolean farmlandTramplingDisabled = false;
public boolean farmlandTramplingOnlyPlayers = false;
public boolean farmlandTramplingFeatherFalling = false;
public double farmlandTrampleHeight = -1D;
private void farmlandSettings() {
farmlandBypassMobGriefing = getBoolean("blocks.farmland.bypass-mob-griefing", farmlandBypassMobGriefing);
farmlandGetsMoistFromBelow = getBoolean("blocks.farmland.gets-moist-from-below", farmlandGetsMoistFromBelow);
@@ -942,6 +943,7 @@ public class PurpurWorldConfig {
farmlandTramplingDisabled = getBoolean("blocks.farmland.disable-trampling", farmlandTramplingDisabled);
farmlandTramplingOnlyPlayers = getBoolean("blocks.farmland.only-players-trample", farmlandTramplingOnlyPlayers);
farmlandTramplingFeatherFalling = getBoolean("blocks.farmland.feather-fall-distance-affects-trampling", farmlandTramplingFeatherFalling);
farmlandTrampleHeight = getDouble("blocks.farmland.trample-height", farmlandTrampleHeight);
}
public double floweringAzaleaGrowthChance = 0.0D;