How would you be able to read the season of the world the player is in from the Serene seasons mod?

Started by ScareForceOne on

Topic category: Help with modding (Java Edition)

Last seen on 12:22, 22. Jun 2024
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How would you be able to read the season of the world the player is in from the Serene seasons mod?

As the title says , I'm trying to make a survival focused mod that handles temperature and that is compatible with Serene seasons, but I have zero clues how to actually get the current season. I would appreciate anyone who could help me on this.

Last seen on 17:47, 14. Jul 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm pretty sure Serene…
Mon, 10/02/2023 - 10:46

I'm pretty sure Serene Season's seasons are just based on gametime- the current number of in game days. If this is the case, you should just be able to find out the length of each season, and then check the current gametime to get the current season.

Since seasons will keep repeating, you'll probably also need to use some sort of remainder function. If it's been longer than one in-game year, get the remainder of dividing the current day by the year length. This way, you'll always have the correct season, regardless of whether the season has already occured.

Last seen on 12:22, 22. Jun 2024
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you for the suggestion…
Mon, 10/02/2023 - 13:59

Thank you for the suggestion , but i dont if it would work if someone were to change the season via commands. I dont think i would be able to track that through gametime.

Last seen on 17:47, 14. Jul 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This should totally work…
Mon, 10/02/2023 - 14:03

This should totally work with commands, (assuming the seasons are based on gametime.) Gametime just keeps track of how many days have passed in the world; changing the gametime will change the season accordingly. (This is how I tested Serene Seasons awhile back to get a look at the different seasons.) The seasons are based on whatever time it currently is, not how many days have actually passed. (At least, assuming the mod hasn't changed since I last tried it.)

Last seen on 12:22, 22. Jun 2024
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
do you mean it would work…
Mon, 10/02/2023 - 14:30

do you mean it would work when using the /time command or when using the /season command/

Last seen on 17:47, 14. Jul 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Assuming seasons are based…
Mon, 10/02/2023 - 14:33

Assuming seasons are based on time, the seasons command probably just advances the time enough to move to the next season. (You should be able to pretty easily test this- try the seasons command, and then use /time query to get the number of days before and after.)

Last seen on 12:22, 22. Jun 2024
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thank you very much for the…
Mon, 10/02/2023 - 16:24

thank you very much for the help , im gonna try it out right away. I didnt think there could be a solution as easy as this