1
Command Block Help [1.13.2]
Hello there everyone!
I need help with getting something to happen with command blocks (if possible of course).
I wish to create something that waits until a specific gametime before it moves on to the next command block as I wish for something to happen at a specific time.
Thank you in advance!
I need help with getting something to happen with command blocks (if possible of course).
I wish to create something that waits until a specific gametime before it moves on to the next command block as I wish for something to happen at a specific time.
Thank you in advance!
5
I made a small system wich make it even possible to test for real time (24h)
But I guess, as "game time", you mean "time since a player got on the map"?
I could probably do what you want, simply tell what you are meaning by "game time"
But I guess, as "game time", you mean "time since a player got on the map"?
I could probably do what you want, simply tell what you are meaning by "game time"
Depending on where you're going to place this I'd definitely recommend to consider functions ('datapacks'). The problem here is: what's going to happen if your area unloads?
If you were in 1.14, you would just use /schedule, however for 1.13:
To get the gametime (total number of ticks the servers been running, this is very big):
/time query gametime
*there is also day and daytime, if you need less specific*
Then, save the gametime to the scoreboard with something like:
/execute store result score @p timescore run time query gametime
Now you can run "execute if" commands on the gametime. Hope that helped :)
To get the gametime (total number of ticks the servers been running, this is very big):
/time query gametime
*there is also day and daytime, if you need less specific*
Then, save the gametime to the scoreboard with something like:
/execute store result score @p timescore run time query gametime
Now you can run "execute if" commands on the gametime. Hope that helped :)
Adding to this, make sure it's actually running as all players. If your on a server or nnot, executed vanilla commands run regardless of permissions. So try this:
/execute as @a[limit=1] at @s run execute store result ticks timescore run time query daytime
Remember: there are 20 ticks in an real-time second.
6000 ticks is Noon.
/execute as @a[limit=1] at @s run execute store result ticks timescore run time query daytime
Remember: there are 20 ticks in an real-time second.
6000 ticks is Noon.
I could possibly help with this, considering I literally just found out a trick using either players or ANY other entity (including items, but those de-spawn). How quickly do you need this? I work today until relatively late (5 hours from now) but can work with you as long as we need to when I'm off.
A datapack would definitely be better, but I can make it work for you with Command Blocks just fine. If you have any experience with /scoreboard, then we should be fine.
A datapack would definitely be better, but I can make it work for you with Command Blocks just fine. If you have any experience with /scoreboard, then we should be fine.
