I was wondering if there already is/is it possible to make a plugin that allows you to have several regions in your world (either the plugin itself allows regions to be selected, or works with something like Foxguards regions).
Something like the following.
Area 1, always mid-day.
Area 2, always night
Area 3, regular sun/moon cycles
Maybe even do weather too? So Area 1 and 3 don’t rain/snow, but Area 2 is always raining.
Thanks in advance for any feedback!
Currently there is no such plugin. I think it would be possible when Context is implemented. Otherwise, with NMS it is always possible.
I’m gonna be honest here, i have no clue what NMS or Context is 
Context is a sponge thing that allows you to do things only to specific player/player groups. Like showing weather, time…
NMS: net.minecraft.server, the package where the original minecraft server code is. There a classes for weather things, like a “send weather” packet. Normally the packets are sent to all players in the same world. But a plugin can prevent this, so weather is player-specific(and so location specific).
1 Like
I see! Thank you for the explanation <3
So it sounds like Context would be the best bet as it can do both, where as NMS can only do weather?
I haven’t been keeping up with the nuances of the Sponge development process, so is there any word as to how Context is going? I’m not expecting a completion date or anything, but is it being worked on, has there been updates? Or are they prioritising other features first?
For all-day region, it’s possible to prevent mob spawning. But for all-night regions, I’m not sure how mob spawning would be handled, and how to prevent undead to ignite. Also, sunlight sensors will always show real sky light level. Same with weather, plus things like cauldron’s filling and moistering farmland.
Well mobs wouldn’t be an issue on my server thankfully, and any areas that players could make cauldrons, daylight sensors or farmland would be on the regular day/night and with normal weather.
Thanks for the concern though, thankfully I had already thought of most of this, but coulda been a life saver if I hadn’t ^^
I think everything you listed can be prevented by a sponge plugin. The problem is that the crucial ChangeDataHolderEvent isn’t implemented yet.
@Chimera I really don’t know what currently is the priority goal to implement. And: NMS can do almost everything, not only weather. But @VcSaJen spotted it right that several things would have to be manipulated manually, no simple packet sending like players.