Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.survival.mod.world;
- import net.minecraft.world.World;
- import net.minecraft.world.biome.BiomeGenBase;
- import com.survival.mod.Debugger;
- public class Season {
- public static void seasonTick(World world) {
- long days = (world.getTotalWorldTime() / 24000);
- long dayOfTheYear = (days % 28);
- long season = (dayOfTheYear / 7);
- if (season == 0) {
- StartWinterSeason(world);
- } else if (season == 1)
- {
- } else if (season == 2)
- {
- } else if (season == 3)
- {
- }
- }
- private static void StartWinterSeason(World world) {
- for (int i = 0; i < 39; i++) {
- BiomeGenBase biomegenBase = BiomeGenBase.getBiome(i).setEnableSnow();
- }
- world.setRainStrength(5.0F);
- Debugger.log(BiomeGenBase.getBiome(5).getEnableSnow());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement