1

Command Block Help [1.13.2]

Buttered_Wlarus 3/20/19 10:23 am
568
4/2/2019 6:23 pm
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!
Posted by
Buttered_Wlarus
Level 1 : New Explorer
0

  Have something to say?

JoinSign in

5

Eglaios
04/02/2019 6:23 pm
Level 46 : Master Miner
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"
1
ShelLuser
03/23/2019 12:06 pm
Level 61 : High Grandmaster System
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?
1
Nitrox Nova
03/20/2019 11:33 am
Level 60 : High Grandmaster Robot
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 :)
2
Toby Minceraft
03/20/2019 12:05 pm
He/Him • Level 45 : Master Procrastinator
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.
2
Toby Minceraft
03/20/2019 11:14 am
He/Him • Level 45 : Master Procrastinator
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.
2

Welcome