Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.52 KB | None | 0 0
  1. import java.io.File;
  2. import java.io.PrintStream;
  3. import net.minecraft.client.Minecraft;
  4.  
  5. public class mod_fasterminecarts extends BaseMod {
  6.     public static KrushProps props = new KrushProps(new File(getAppdata() + '/' + "FasterMinecarts.properties").getPath());
  7.    
  8.     public String Version() { return "Beta 1.3_01, mod version 1"; }
  9.     private static String getAppdata() { return Minecraft.b().getPath(); }
  10.     //momentumBound
  11.     public mod_fasterminecarts() {
  12.         if (!props.keyExists("momentumBoundary")) {
  13.             System.out.println("Keys not found. Adding to settings file.");
  14.             props.setString("#0.4 is the default value, 0.5 comes with this mod. I think it's blocks per frame.  ","");
  15.             props.setDouble("momentumBoundary",0.5D);
  16.             props.setString("#","");
  17.         }
  18.         if (!props.keyExists("noRiderPenalty")) {
  19.             props.setString("#The momentum penalty for having no rider in the cart. Default is 0.75.  ","");
  20.             props.setDouble("noRiderPenalty",0.75D);
  21.             props.setString("#","");
  22.         }
  23.         if (!props.keyExists("RiderPenalty")) {
  24.             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.","");
  25.             props.setDouble("RiderPenalty",1D);
  26.         }
  27.     }
  28.     public double momentumBound() {
  29.         return props.getDouble("momentumBoundary",0.5D);
  30.     }
  31.     public double noRiderPenalty() { return props.getDouble("noRiderPenalty",0.75D) }
  32.     public double RiderPenalty() { return props.getDouble("RiderPenalty",0.D) }
  33.    
  34.     static {
  35.         props.save();
  36.     }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement