forum Forumsplay_arrow Minecraft fiber_manual_record Redstone

1

Command Block Help [1.13.2]

1 emerald5 replies180 views
created 03/20/2019 10:23 am by Buttered_Wlarus
last reply 04/02/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 avatar
Buttered_Wlarus
Level 1 : New Explorer
0

comment Login or register to post a reply.

5 replies

04/02/2019 6:23 pm
Level 1 : New Miner
Eglaios
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"
03/23/2019 12:06 pm
Level 39 : Artisan Engineer
ShelLuser
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?
03/20/2019 11:14 am
Level 38 : Artisan Musician
Toby Minceraft
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.
03/20/2019 11:33 am
Level 30 : Artisan Robot
Nitrox Nova
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 :)
03/20/2019 12:05 pm
Level 38 : Artisan Musician
Toby Minceraft
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.

Planet Minecraft

Browse

Site

© 2010 - 2019
planetminecraft.com

Welcome