Sorry if I posted this is the wrong section, I didn't know where to put it. I am fairly new to redstone and command blocks. I am constantly rendering a chunk with chicken chunk that has command blocks in it. However, I am trying to apply the saturation effect to all players every 10 minutes with reapting and chain command blocks and the /effect and /scoreboard commands. Does anyone know how to do this? I've spent over 3 hours trying to figure this out and I am very frustrated, any help would be appreciated!
You don't need any redstone for this. Build a chain of command blocks (see included screenshot for the command block layout) and paste the following commands in them (in order):
scoreboard players add global timer 1
execute if score global timer matches 12000.. run effect give @a minecraft:saturation 1 5 true
execute if score global timer matches 12000.. run scoreboard players reset global timer
before you run the chain, create the scoreboard objective by running this command in chat:
/scoreboard objectives add timer dummy
and adjust the effect values.
the number 12000 is in-game ticks. To calculate how many ticks are needed for 10 minutes:
10 mins * 60 seconds = 600 seconds
1 real-life second = 20 Minecraft ticks so 600 * 20 = 12000 ticks
Sorry if I posted this is the wrong section, I didn't know where to put it. I am fairly new to redstone and command blocks. I am constantly rendering a chunk with chicken chunk that has command blocks in it. However, I am trying to apply the saturation effect to all players every 10 minutes with reapting and chain command blocks and the /effect and /scoreboard commands. Does anyone know how to do this? I've spent over 3 hours trying to figure this out and I am very frustrated, any help would be appreciated!
You don't need any redstone for this. Build a chain of command blocks (see included screenshot for the command block layout) and paste the following commands in them (in order):
before you run the chain, create the scoreboard objective by running this command in chat:
and adjust the effect values.
the number 12000 is in-game ticks. To calculate how many ticks are needed for 10 minutes:
10 mins * 60 seconds = 600 seconds
1 real-life second = 20 Minecraft ticks so 600 * 20 = 12000 ticks
Command block engineer // Developer // #TeamTrees
Thank you it worked!