Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Is there a way of tweaking some vanilla class:
I want to, change this code from Level.class (World.class on 1.16.x i think)

public abstract class Level extends net.minecraftforge.common.capabilities.CapabilityProvider<Level> implements LevelAccessor, AutoCloseable, net.minecraftforge.common.extensions.IForgeLevel {
...
public boolean isRainingAt(BlockPos p_46759_) {
      if (!this.isRaining()) {
         return false;
      } else if (!this.canSeeSky(p_46759_)) {
         return false;
      } else if (this.getHeightmapPos(Heightmap.Types.MOTION_BLOCKING, p_46759_).getY() > p_46759_.getY()) {
         return false;
      } else {
         Biome biome = this.getBiome(p_46759_);
         return biome.getPrecipitation() == Biome.Precipitation.RAIN && biome.getTemperature(p_46759_) >= 0.15F;
      }
}
  ... }

what i want to do is, make the rain stop or start on specific area (or better change climate).
Biome's climate settings(temperature, humidity) can be changed, but i think only once, on world generation, I think

source: [1.17.1]
net.minecraft.world.level;
net.minecraft.world.level.biome;
net.minecraftforge.event.world.BiomeLoadingEvent;

im nowhere near what im trying to do... but if anyone has an idea how to achieve it, or anything similar, any help is appreciated :3

can the class be replaced with extention???

  • Author

hi, it's u again 😅
so i shouldn't change it... (regardless of compatibility with other mods)

how about anything with similar result, any idea...

im trying to add monsoon and season

  • Author
19 minutes ago, diesieben07 said:

Not in a supported way.

hi, it's u again 😅
so i shouldn't change it... (regardless of compatibility with other mods)

how about anything with similar result, any idea...

im trying to add monsoon and season

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.