How to put lots of seconds between a command block without using redstone repeater? [duplicate]

How to put lots of seconds between a command block without using redstone repeater? [duplicate] - Crop hacker silhouette typing on computer keyboard while hacking system

What I want to do is put a command block down and do a command every 1 minute! How do I do this without redstone repeaters? I am doing this for a server!



Best Answer

You should be able to achieve your goal just by using command blocks. Using a repeating command block, you can increment the score of a dummy player by 1, like so: (note you need to create the objective in the scoreboard beforehand.

/scoreboard players add count dummy_objective 1

Knowing that this command will happen 20 times/s by default, we can figure that a minute has occurred when the score reaches 20 times/s * 60 s/min = 1200. Using a second repeating command block, you can use the following command to detect when the score reaches 1200:

/scoreboard players test count dummy_objective 1200

In conditional chain command blocks following the above command, you will need to set the score back to 0, then execute the commands that you want:

/scoreboard players set count dummy_objective 0
... <your commands>



Pictures about "How to put lots of seconds between a command block without using redstone repeater? [duplicate]"

How to put lots of seconds between a command block without using redstone repeater? [duplicate] - Crop mother and daughter sitting on bed while using laptop
How to put lots of seconds between a command block without using redstone repeater? [duplicate] - From above of crop anonymous male hacker typing on netbook with data on screen while sitting at desk
How to put lots of seconds between a command block without using redstone repeater? [duplicate] - Crop joiner working with wooden block using sharp tool



How do you make a command block repeat every 30 seconds?

Set the command block somewhere and add redstone repeaters and make sure to time the repeaters to somewhere around 29-30 seconds (if it's not that accurate) and you can just activate a single repeater by right-clicking a lever fast 2 times at the command block.

How do you make a command block repeat forever?

To get a repeating command block, players must use the /give command like so: /give @p minecraft:repeating_command_block <amount> . Players can also change a normal command block into a repeating command block by selecting the option in the command block GUI.

How do you put a delay in a command block?

Replace {delay} with the delay you want in ticks, plus one. For example, if you want a delay of 5 seconds, you would put 101 there since 5sec * 20 tick/sec + 1 = 101 . Replace {entity} with the selector for the entity that you want to run the command.



How To Make Wireless Redstone Using Commands | Minecraft 1.18.1+




More answers regarding how to put lots of seconds between a command block without using redstone repeater? [duplicate]

Answer 2

There are some types of redstone timers that do not require repeaters. The first one that comes to mind is a minecart timer. I don't know the math off the top of my head, but the basic mechanism is that you have a minecart on a circular track, with enough powered rails to keep it at full speed, and one detector rail. Make the track long enough that it takes one minute for the minecart to hit the detector rail. Another, slightly more space efficient alternative is to make the cart travel the track (factor of 60) seconds, then have ((complimenting factor of 60) - 1) 1-bit memory cells which get activated one-by-one on each activation, resetting on the next signal once all of them are turned on. For example, if the minecart travels the track in 15 seconds, turn one memory cell on on each iteration then send a signal to your command block on the 4th activation. The main advantage to minecart timers is that they are precise even through server lag, with the downside being that you have to ensure nothing gets in the way of the minecart.

Another slightly silly alternative is to set your day/night cycle to occur every minute, and use a daylight detector connected to a dual edge detector (e.g. https://imgur.com/a/eGOyb#2). Or just set it to do a complete cycle from day to night and back every minute.

Answer 3

You can if you use a Timer Setup with scoreboard with a combination of /scoreboard players test.

Answer 4

You can make a slow clock quite easily with a minecart and cobwebs. Make a track that runs uphill and then falls onto cobwebs. For every cobweb you place, the minecart will take 30 more seconds to fall, so in your case, you'd need 2 cobwebs. Then, at the bottom, put powered rails and 1 detector rail to send out a signal, then connect that track to the one running uphill to make a loop.

Answer 5

First of all judging from your question I think that you're trying to ask us all "Is it possible to add delay to command blocks without repeaters?"

It isin't possible to do sowith command blocks, not even with repeating command blocks, as they execute thier command every game tick (20 times/s by default)

So unfortunately you're not able to add any delay to command blocks without using any repeaters.

Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Anete Lusina, Tatiana Syrikova, Sora Shimazaki, Ono Kosuki