Changed MaxBlocksPerAxis and MaxBlocksPlaced formulas. Now allows placing of 60x60 floors and walls with reach upgrade 3 in survival.
This commit is contained in:
@@ -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.
|
//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
|
group = "nl.requios.effortlessbuilding" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||||
archivesBaseName = "effortlessbuilding"
|
archivesBaseName = "effortlessbuilding"
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ public class EffortlessBuilding
|
|||||||
{
|
{
|
||||||
public static final String MODID = "effortlessbuilding";
|
public static final String MODID = "effortlessbuilding";
|
||||||
public static final String NAME = "Effortless Building";
|
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)
|
@Mod.Instance(EffortlessBuilding.MODID)
|
||||||
public static EffortlessBuilding instance;
|
public static EffortlessBuilding instance;
|
||||||
|
|||||||
@@ -28,12 +28,20 @@ public class ReachHelper {
|
|||||||
|
|
||||||
public static int getMaxBlocksPlacedAtOnce(EntityPlayer player) {
|
public static int getMaxBlocksPlacedAtOnce(EntityPlayer player) {
|
||||||
if (player.isCreative()) return 1000000;
|
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) {
|
public static int getMaxBlocksPerAxis(EntityPlayer player) {
|
||||||
if (player.isCreative()) return 2000;
|
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) {
|
public static boolean canBreakFar(EntityPlayer player) {
|
||||||
|
|||||||
Reference in New Issue
Block a user