From 89057356df724130c30fd05f8753dd806d91394f Mon Sep 17 00:00:00 2001 From: Christian Knaapen Date: Wed, 5 Jun 2019 20:02:37 +0200 Subject: [PATCH] Changed MaxBlocksPerAxis and MaxBlocksPlaced formulas. Now allows placing of 60x60 floors and walls with reach upgrade 3 in survival. --- build.gradle | 2 +- .../effortlessbuilding/EffortlessBuilding.java | 2 +- .../effortlessbuilding/helper/ReachHelper.java | 12 ++++++++++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index ec94e33..ca28f62 100644 --- a/build.gradle +++ b/build.gradle @@ -11,7 +11,7 @@ apply plugin: 'net.minecraftforge.gradle.forge' //Only edit below this line, the above code adds and enables the necessary things for Forge to be setup. -version = "1.12.2-2.11" +version = "1.12.2-2.12" group = "nl.requios.effortlessbuilding" // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = "effortlessbuilding" diff --git a/src/main/java/nl/requios/effortlessbuilding/EffortlessBuilding.java b/src/main/java/nl/requios/effortlessbuilding/EffortlessBuilding.java index 3f86f86..1af0ddd 100644 --- a/src/main/java/nl/requios/effortlessbuilding/EffortlessBuilding.java +++ b/src/main/java/nl/requios/effortlessbuilding/EffortlessBuilding.java @@ -39,7 +39,7 @@ public class EffortlessBuilding { public static final String MODID = "effortlessbuilding"; public static final String NAME = "Effortless Building"; - public static final String VERSION = "1.12.2-2.11"; + public static final String VERSION = "1.12.2-2.12"; @Mod.Instance(EffortlessBuilding.MODID) public static EffortlessBuilding instance; diff --git a/src/main/java/nl/requios/effortlessbuilding/helper/ReachHelper.java b/src/main/java/nl/requios/effortlessbuilding/helper/ReachHelper.java index e350a53..bac193e 100644 --- a/src/main/java/nl/requios/effortlessbuilding/helper/ReachHelper.java +++ b/src/main/java/nl/requios/effortlessbuilding/helper/ReachHelper.java @@ -28,12 +28,20 @@ public class ReachHelper { public static int getMaxBlocksPlacedAtOnce(EntityPlayer player) { if (player.isCreative()) return 1000000; - return getMaxReach(player) * 5; + return MathHelper.ceil(Math.pow(getMaxReach(player), 1.6)); + //Level 0: 90 + //Level 1: 353 + //Level 2: 1000 + //Level 3: 2828 } public static int getMaxBlocksPerAxis(EntityPlayer player) { if (player.isCreative()) return 2000; - return MathHelper.ceil(MathHelper.sqrt(getMaxReach(player))); + return MathHelper.ceil(getMaxReach(player) * 0.3); + //Level 0: 6 + //Level 1: 15 + //Level 2: 30 + //Level 3: 60 } public static boolean canBreakFar(EntityPlayer player) {