Advertisement
Guest User

Season.java

a guest
Jun 23rd, 2015
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.82 KB | None | 0 0
  1. package com.survival.mod.world;
  2.  
  3. import net.minecraft.world.World;
  4. import net.minecraft.world.biome.BiomeGenBase;
  5.  
  6. import com.survival.mod.Debugger;
  7.  
  8. public class Season {
  9.  
  10.     public static void seasonTick(World world) {
  11.        
  12.         long days = (world.getTotalWorldTime() / 24000);
  13.         long dayOfTheYear = (days % 28);
  14.         long season = (dayOfTheYear / 7);
  15.        
  16.         if (season == 0) {
  17.            
  18.             StartWinterSeason(world);
  19.            
  20.         } else if (season == 1)
  21.         {
  22.            
  23.         } else if (season == 2)
  24.         {
  25.            
  26.         } else if (season == 3)
  27.         {
  28.            
  29.         }
  30.     }
  31.  
  32.     private static void StartWinterSeason(World world) {
  33.        
  34.         for (int i = 0; i < 39; i++) {
  35.            
  36.             BiomeGenBase biomegenBase = BiomeGenBase.getBiome(i).setEnableSnow();
  37.            
  38.         }
  39.        
  40.         world.setRainStrength(5.0F);
  41.         Debugger.log(BiomeGenBase.getBiome(5).getEnableSnow());
  42.        
  43.     }
  44.  
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement