I added the New / Invalid State and Thunderbolt packets. Just for testing of the packets(one packet) I made it so rain starts when you open a workbench and stop when you open a chest.
It seems thunder is overly complex. It looks like the server needs to create a thunder entity, send the thunderbolt packet, and remove the entity. I haven't tested anything with it, I just created the packet.
Weather is going to need a lot more work. Each world need to have a raining or not raining state. If raining than all players that log on need to have the rain status sent to them. If it's a thunderstorm, than random thunder bolts need to be created.
I'm not sure how the client knows the difference between a thunderstorm and rainstorm, I don't see anything but rain on the packet list. Maybe once a thunderbolt packet is sent the client turns it into a thunderstorm.
Yup, sending just the thunderbolt packet to the client does absolutely nothing. >.>
Guess I'll get to work on creating the entity.
It seems thunder is overly complex. It looks like the server needs to create a thunder entity, send the thunderbolt packet, and remove the entity. I haven't tested anything with it, I just created the packet.
Weather is going to need a lot more work. Each world need to have a raining or not raining state. If raining than all players that log on need to have the rain status sent to them. If it's a thunderstorm, than random thunder bolts need to be created.
I'm not sure how the client knows the difference between a thunderstorm and rainstorm, I don't see anything but rain on the packet list. Maybe once a thunderbolt packet is sent the client turns it into a thunderstorm.
Yup, sending just the thunderbolt packet to the client does absolutely nothing. >.>
Guess I'll get to work on creating the entity.