How can you have a command automatically executed every 6 seconds in Minecraft?

gl
7

How can you have a command automatically executed every 6 seconds in Minecraft?

Ax

Yup you can. Use scoreboards to count up.

Ax

I'm assuming version 1.12. If you are using 1.13 or newer you can use this tool to convert the commands to the new version: https://www.planetminecraft.com/...s-at-once/

Here:

/ scoreboard objectives add timer dummy

/ summon ArmorStand ~ ~ ~ {CustomName: "Announcement", NoGravity: 1b, Small: 1, Invisible: 1, Invulnerable: 1, NoBasePlate: 1}

Execute the second command in a place where a player will not be.

In a repeating command block it is then determined that it is always active:

/ scoreboard players add @e [type = ArmorStand, name = Announcement] timer 1

Chain command block from the repeat command block (always active):

/ execute @e [name = Announcement, type = ArmorStand, score_min = 12000] ~ ~ ~ / say message here

Chain command block from the chain command block (always active):

/ scoreboard players set @e [@e [name = Announcement, type = ArmorStand, score_min = 12000] timer 0

gl

YES, I want to make it count up every 6 seconds! Your answer really doesn't work

ro

Disorder? Or adhs?

Ax

Look at my other answer. I wrote the orders. Here again:

I'm assuming version 1.12. If you are using 1.13 or newer you can use this tool to convert the commands to the new version: https://www.planetminecraft.com/...s-at-once/

Here:

/ scoreboard objectives add timer dummy
/ summon ArmorStand ~ ~ ~ {CustomName: "Announcement", NoGravity: 1b, Small: 1, Invisible: 1, Invulnerable: 1, NoBasePlate: 1}

Execute the second command in a place where a player will not be.

In a repeating command block it is then determined that it is always active:

/ scoreboard players add @e [type = ArmorStand, name = Announcement] timer 1

Chain command block after the repeat command block (always active):

/ execute @e [name = Announcement, type = ArmorStand, score_min = 12000] ~ ~ ~ / say message here

Chain command block after the chain command block (always active):

/ scoreboard players set @e [@e [name = Announcement, type = ArmorStand, score_min = 12000] timer 0

gl

Puberty

Si

Simply build a clock and set it with amplifiers so that it emits 1 signal every 6 seconds