mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-16 10:03:43 +01:00
Configurable hunger games
This commit is contained in:
parent
9bff016ba4
commit
cb135df649
2 changed files with 6 additions and 1 deletions
|
@ -6,6 +6,7 @@ import com.simibubi.create.AllTileEntities;
|
||||||
import com.simibubi.create.content.contraptions.base.DirectionalKineticBlock;
|
import com.simibubi.create.content.contraptions.base.DirectionalKineticBlock;
|
||||||
import com.simibubi.create.foundation.block.ITE;
|
import com.simibubi.create.foundation.block.ITE;
|
||||||
|
|
||||||
|
import com.simibubi.create.foundation.config.AllConfigs;
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.block.BlockRenderType;
|
import net.minecraft.block.BlockRenderType;
|
||||||
import net.minecraft.block.BlockState;
|
import net.minecraft.block.BlockState;
|
||||||
|
@ -61,7 +62,7 @@ public class HandCrankBlock extends DirectionalKineticBlock implements ITE<HandC
|
||||||
return ActionResultType.PASS;
|
return ActionResultType.PASS;
|
||||||
|
|
||||||
withTileEntityDo(worldIn, pos, te -> te.turn(player.isSneaking()));
|
withTileEntityDo(worldIn, pos, te -> te.turn(player.isSneaking()));
|
||||||
player.addExhaustion(getRotationSpeed()/100.f);
|
player.addExhaustion(getRotationSpeed() * AllConfigs.SERVER.kinetics.crankHungerMultiplier.getF());
|
||||||
return ActionResultType.SUCCESS;
|
return ActionResultType.SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,9 @@ public class CKinetics extends ConfigBase {
|
||||||
public ConfigInt generatingFanSpeed = i(16, 0, "generatingFanSpeed", Comments.rpm, Comments.generatingFanSpeed);
|
public ConfigInt generatingFanSpeed = i(16, 0, "generatingFanSpeed", Comments.rpm, Comments.generatingFanSpeed);
|
||||||
public ConfigInt inWorldProcessingTime = i(150, 0, "inWorldProcessingTime", Comments.inWorldProcessingTime);
|
public ConfigInt inWorldProcessingTime = i(150, 0, "inWorldProcessingTime", Comments.inWorldProcessingTime);
|
||||||
|
|
||||||
|
public ConfigGroup crank = group(0, "handCrank", "Hand Crank & Valve Handles");
|
||||||
|
public ConfigFloat crankHungerMultiplier = f(.01f, 0, 1, "crankHungerMultiplier", Comments.crankHungerMultiplier);
|
||||||
|
|
||||||
public ConfigGroup contraptions = group(0, "contraptions", "Moving Contraptions");
|
public ConfigGroup contraptions = group(0, "contraptions", "Moving Contraptions");
|
||||||
public ConfigInt maxBlocksMoved = i(2048, 1, "maxBlocksMoved", Comments.maxBlocksMoved);
|
public ConfigInt maxBlocksMoved = i(2048, 1, "maxBlocksMoved", Comments.maxBlocksMoved);
|
||||||
public ConfigInt maxChassisRange = i(16, 1, "maxChassisRange", Comments.maxChassisRange);
|
public ConfigInt maxChassisRange = i(16, 1, "maxChassisRange", Comments.maxChassisRange);
|
||||||
|
@ -55,6 +58,7 @@ public class CKinetics extends ConfigBase {
|
||||||
static String fanRotationArgmax = "Rotation speed at which the maximum stats of fans are reached.";
|
static String fanRotationArgmax = "Rotation speed at which the maximum stats of fans are reached.";
|
||||||
static String generatingFanSpeed = "Rotation speed generated by a vertical fan above fire.";
|
static String generatingFanSpeed = "Rotation speed generated by a vertical fan above fire.";
|
||||||
static String inWorldProcessingTime = "Game ticks required for a Fan-based processing recipe to take effect.";
|
static String inWorldProcessingTime = "Game ticks required for a Fan-based processing recipe to take effect.";
|
||||||
|
static String crankHungerMultiplier = "multiplier used for calculating exhaustion from speed when a crank is turned.";
|
||||||
static String maxBlocksMoved = "Maximum amount of blocks in a structure movable by Pistons, Bearings or other means.";
|
static String maxBlocksMoved = "Maximum amount of blocks in a structure movable by Pistons, Bearings or other means.";
|
||||||
static String maxChassisRange = "Maximum value of a chassis attachment range.";
|
static String maxChassisRange = "Maximum value of a chassis attachment range.";
|
||||||
static String maxPistonPoles = "Maximum amount of extension poles behind a Mechanical Piston.";
|
static String maxPistonPoles = "Maximum amount of extension poles behind a Mechanical Piston.";
|
||||||
|
|
Loading…
Reference in a new issue