Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.File;
- import java.io.PrintStream;
- import net.minecraft.client.Minecraft;
- public class mod_fasterminecarts extends BaseMod {
- public static KrushProps props = new KrushProps(new File(getAppdata() + '/' + "FasterMinecarts.properties").getPath());
- public String Version() { return "Beta 1.3_01, mod version 1"; }
- private static String getAppdata() { return Minecraft.b().getPath(); }
- //momentumBound
- public mod_fasterminecarts() {
- if (!props.keyExists("momentumBoundary")) {
- System.out.println("Keys not found. Adding to settings file.");
- props.setString("#0.4 is the default value, 0.5 comes with this mod. I think it's blocks per frame. ","");
- props.setDouble("momentumBoundary",0.5D);
- props.setString("#","");
- }
- if (!props.keyExists("noRiderPenalty")) {
- props.setString("#The momentum penalty for having no rider in the cart. Default is 0.75. ","");
- props.setDouble("noRiderPenalty",0.75D);
- props.setString("#","");
- }
- if (!props.keyExists("RiderPenalty")) {
- props.setString("#Momentum penalty for having a rider in the cart. Default is 1. PLEASE NOTE THAT values of greater than 1 are liable to crash the game, which you just lost.","");
- props.setDouble("RiderPenalty",1D);
- }
- }
- public double momentumBound() {
- return props.getDouble("momentumBoundary",0.5D);
- }
- public double noRiderPenalty() { return props.getDouble("noRiderPenalty",0.75D) }
- public double RiderPenalty() { return props.getDouble("RiderPenalty",0.D) }
- static {
- props.save();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement