Skript Version (do not put latest): Couldn't find any version info in folders/files, and /sk update check just returns "You're currently running the latest stable version of Skript".
Addons: None
Minecraft Version: 1.15.2
Question in the title sums it up. Here's some context in case it's not clear...
I'm trying to find out how to check whether doDaylightCycle is set to true or false. I don't know whether I'm making a simple syntax mistake, approaching the task from the wrong angle, or even attempting something Skript just can't do.
I've spent hours googling, combing documentation, searching forums, and the only related references I find are the same instructions repeated over and over about how to set it, as opposed to check it. (I even went down a workaround rabbit hole doing a check to see whether time had passed between one line of code and another, before it dawned on me that system time would be carrying on regardless. Doh! And MC time doesn't seem to have the necessary precision.)
In desperation, I've tried all kinds of variations, e.g. putting doDaylightCycle in curly brackets as if it were just another variable, omitting the "do" part, substituting "is" with "is set to" and with "=".
This was my first attempt at a skript, and it worked perfectly...until I got ambitious and decided to add the status-check. Any help would be appreciated! Thank you.
Code:
Error:
Addons: None
Minecraft Version: 1.15.2
Question in the title sums it up. Here's some context in case it's not clear...
I'm trying to find out how to check whether doDaylightCycle is set to true or false. I don't know whether I'm making a simple syntax mistake, approaching the task from the wrong angle, or even attempting something Skript just can't do.
I've spent hours googling, combing documentation, searching forums, and the only related references I find are the same instructions repeated over and over about how to set it, as opposed to check it. (I even went down a workaround rabbit hole doing a check to see whether time had passed between one line of code and another, before it dawned on me that system time would be carrying on regardless. Doh! And MC time doesn't seem to have the necessary precision.)
In desperation, I've tried all kinds of variations, e.g. putting doDaylightCycle in curly brackets as if it were just another variable, omitting the "do" part, substituting "is" with "is set to" and with "=".
This was my first attempt at a skript, and it worked perfectly...until I got ambitious and decided to add the status-check. Any help would be appreciated! Thank you.
Code:
Code:
command /wntimego:
usage: /wntimego
aliases: /wntg
trigger:
if doDaylightCycle is false:
make console execute command "/gamerule doDaylightCycle true"
broadcast "<green>Time has been started by <white>%player%<green>."
else:
message "<red>Time was already passing." to player
Error:
Code:
can't understand this condition: 'doDaylightCycle is false' (wntime.sk, line 5: if doDaylight cycle is false:')