2

Timed Message.

Yurokurito 10/26/21 2:31 pm
232
10/28/2021 7:50 am
Does anyone know how to make message appear in chat every 5 minutes? If so please respond. Help.
Posted by
Yurokurito
Level 8 : Apprentice Artist
12

  Have something to say?

JoinSign in

14

Niesi
10/27/2021 7:33 am
Level 39 : Artisan Architect
You can do it with commandsblocks or just install a plugin. I would prefer plugins.
1
Yurokurito
10/27/2021 9:18 am
Level 8 : Apprentice Artist
Any plugins you'd recommend?
2
Pleasenotme
10/27/2021 9:32 am
Level 59 : Grandmaster Nerd
Use a scoreboard timer with command blocks.

make a dummy scoreboard objective, increment the value of the objective for '5min_timer' every tick

once it reaches 6000 you reset it and make the message appear
2
Yurokurito
10/27/2021 9:39 am
Level 8 : Apprentice Artist
If you can, can you supply me with the commands? I'm not the biggest command nerd.
2
Pleasenotme
10/27/2021 9:54 am
Level 59 : Grandmaster Nerd
First separately run /scoreboard objectives add dummyscore dummy

Then in repeating command blocks, run the following commands:

scoreboard players add 5min dummyscore 1
execute if score 5min dummyscore matches 6001.. run scoreboard players set 5min dummyscore 0
execute if score 5min dummyscore matches 0 run say MESSAGE OVER HERE (alternatively you can use /tellraw)

Then stand next to the command blocks and do /forceload add ~ ~ so that the chunk is kept loaded so that they work even if there are no nearby players.
2
Yurokurito
10/27/2021 9:59 am
Level 8 : Apprentice Artist
Alright thanks, I'll try it out later.
1
lloyddominic26
10/28/2021 4:23 am
Level 20 : Expert Birb
(Correct me if I'm wrong as I have more experience with plugins than command blocks)
Assuming the OP is running a Bukkit or Bukkit-based server, she could freely use a Bukkit plugin to do the exact desired output without needing command blocks.
Here are my 3 reasons:
  1. Redstone can be laggy sometimes.
  2. You need space to place command blocks, and you need to hide it somewhere in the map. You don't need to do that with plugins.
  3. Tellraw can be complicated, but powerful, although there exists some tellraw command generators. However, with plugins, we could just write & as opposed to § to add colors.
1
Pleasenotme
10/28/2021 5:18 am
Level 59 : Grandmaster Nerd
True, redstone can be laggy and plugins might be more useful, but at the end of the day it's just personal preference. I prefer commands because I have experience with them, so I would rather use commands myself than plugins, while you might prefer plugins. Who knows what the OP prefers.

I don't see why you would need § for tellraw tho.
1
lloyddominic26
10/28/2021 7:43 am
Level 20 : Expert Birb
There are two ways of adding colors to a text in a tellraw command.
For instance, if I want to display "Hello and welcome" in red, dark green, and dark aqua colors respectively, I could do either of this:

Option 1
By default, Minecraft uses the section symbol (§) to add colors to a text and even change its text formatting (bold, italic, underline, strikethrough, obfuscated). However, since Minecraft has disabled inserting the section symbol in-game, we can alternatively use its Unicode character escape code: "\u00A7". The final code would be:
/tellraw @a "\u00A7cHello \u00A72and \u00A73welcome"

Option 2
/tellraw @a ["",{"text":"Hello","color":"red"},{"text":"and","color":"dark_green"},{"text":"welcome","color":"dark_aqua"}]

Or, you know, we could just write it this way if we were using plugins:
"&cHello &2and &3welcome"

All of those code above would result to:
Hello and welcome



oh, and one more thing…
at the end of the day it's just personal preference.

Wrong! At the end of the day, it's night. :))
1
Pleasenotme
10/28/2021 7:50 am
Level 59 : Grandmaster Nerd
Ah, didn't know about Option 1, I just use Option 2

And yup it's night lol
2
lloyddominic26
10/27/2021 10:52 am
Level 20 : Expert Birb
Are you talking about the feature on most servers where a message will be shown in chat every x seconds?
If so, you may be referring to an auto-message or auto-broadcast plugin.
There are plenty of plugins available that do just that, found in SpigotMC forums.
If you need recommendations, I know of a similar plugin that is used in 2 popular servers and my server. It's the Announcer plugin.
2
Yurokurito
10/27/2021 11:22 am
Level 8 : Apprentice Artist
Thanks, I'll check it out.
2
Yurokurito
10/27/2021 9:41 pm
Level 8 : Apprentice Artist
Used that plugin. Works flawlessly. Thanks for you advice.
3
lloyddominic26
10/28/2021 3:51 am
Level 20 : Expert Birb
Great! Glad that I've helped.
1

Welcome