Is there a way to make custom weather?

Started by Harry_Da_Boss on Sat, 05/30/2020 - 23:19

Topic category: Help with modding (Java Edition)

Last seen on 15:06, 8. Jul 2020
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Is there a way to make custom weather?
Sat, 05/30/2020 - 23:19

For example, in a certain biome, could I make it snow with the snow particles being the brown square particle and the snow layers being replaced with a custom block?

Last seen on 04:35, 17. Jan 2021
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Well, in a World Tick Event…
Mon, 06/01/2020 - 04:11

Well, in a World Tick Event I would use Random variables to randomly send packets to all players telling them if my custom weather is happening or not. If my weather is happening I could render an overlay to the player or just spawn my custom particles. To add custom blocks to the ground. You could iterate down Y positions and if you hit a non-air block, use a random variable to determine whether to add your block above that position. I am on my phone right now so I can't write something up, but I think you get the point.