Draconic Evolution

Draconic Evolution

77M Downloads

Weather controller doesn't affect rain in mystcraft dimensions

dhasenan opened this issue ยท 3 comments

commented

Description

Mystcraft weather doesn't follow overworld weather patterns. The Draconic Weather Controller only affects overworld weather.

You can get a mystcraft WeatherController from WorldProviderMyst.getAgeController().getWeatherController(). (I'm not sure how to get the WorldProvider for the world containing the current block / tile entity.) If the controller inherits from WeatherControllerToggleable, you can call disable() on it to disable precipitation, enable() to enable, getRainingStrength() to see if it's raining.

Probably. I only read the decompiled source code; I didn't test or anything. And I'm not sure how to do all this without a hard dependency on mystcraft, unless you use reflection for everything.

(I'm not sure whether the same problem exists for RFTools dimlets and other third-party dimensions. Probably does.)

Base information

  • Minecraft version: 1.7.10
  • Minecraft Forge version: whichever is the default for Tolkiencraft 2 2.9.5
  • Draconic Evolution version: 1.7.10-1.0.2h

Mod List or Mod Pack (include version)

Tolkiencraft 2 2.9.5

commented

...I didn't test correctly, it seems. Apologies.

commented

The Forestry rainmaker with dissipation charges alters weather in Mystcraft ages. Apparently you just have to access TileEntity.worldObj instead of World.

commented

Except that seems to be what you're doing. I dunno, I'm lost.