bigbang87 / deadly-monsters

Mod for Minecraft. New unique monsters, terrible and dangerous creatures. Use the new fortification blocks to defend yourself against them.
MIT License
4 stars 14 forks source link

[1.12.2] Additional Logic on Haunted Cows #15

Open KAfable opened 6 years ago

KAfable commented 6 years ago

When attacked Haunted Cows reset the server time entirely, setting things back to Day 0, time 0. This is pretty bad for mods that depend on server clock for mod mechanics such as scaling mob difficulties based on time, or Astral Sorcery keeping track of Constellation patterns based on the moon phase.

A proposed solution would be to instead of setting the time, is to increment the time until it hits night. So whenever the Haunted Cow event to change the time is called, it could take stock of the current dimension's time, and increment the correct amount of ticks until it is nightfall (eg. 13000th tick of a minecraft day).

naqaden commented 6 years ago

I can't be certain, but based on the message "the moon will glow" it seems to me the idea is to make it midnight with a full moon. Which would be better - fast forward to the next full moon, rewind, or whichever is closest?

bigbang87 commented 5 years ago

Sorry for the delay, I will try to add some time value instead of setting entirely new one.