1

Command Block Help [1.13.2]

Buttered_Wlarus's Avatar Buttered_Wlarus3/20/19 10:23 am
1 emeralds 465 5
4/2/2019 6:23 pm
Eglaios's Avatar Eglaios
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's Avatar
Buttered_Wlarus
Level 1 : New Explorer
0

Create an account or sign in to comment.

5

1
04/02/2019 6:23 pm
Level 46 : Master Miner
Eglaios
Eglaios's Avatar
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
03/23/2019 12:06 pm
Level 57 : Grandmaster Engineer
ShelLuser
ShelLuser's Avatar
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?
2
03/20/2019 11:33 am
Level 60 : High Grandmaster Robot
Nitrox Nova
Nitrox Nova's Avatar
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
03/20/2019 12:05 pm
Level 45 : Master Procrastinator
Toby Minceraft
Toby Minceraft's Avatar
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
03/20/2019 11:14 am
Level 45 : Master Procrastinator
Toby Minceraft
Toby Minceraft's Avatar
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.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome