Jump to content

Recommended Posts

Posted (edited)

I am creating a mod on forge 1.20.1 that makes Minecraft more wintery. I want to make it so that it always snows but I can't find how weather works in Minecraft. My plan was to check if it is raining, and if it is not in a biome that doesn't rain anyway, it instead snows. The fake code below is the logic I was thinking of.

public class Weather {
    static void ontheground() {
        // look at the block, starting from the build limit going down untill the block is not air
    }

    if(raining == true) {
        if(biome != biometype.savana | biometype.desert) {
            particle.render(snow)
                    place(Blocks.SNOW, ontheground, (x, y+1))
        }
    }
}
Edited by the_BigGinge_nafe_innit12

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.