0

I'm looking for a way to send a chat message to all players telling them it is nearing night in my local Bedrock Edition server. I have searched Google and Arqade for this, but do not have an answer that isn't either outdated or using plugins. I am, despite my lack of knowledge of the matter, willing to use command blocks if needed.

Here's the message I want to send, in tellraw command format:

/tellraw @a {"rawtext":[{"text":"§6It's getting late!"}]}

How can I get it to send at in-game dusk?

1

That's what daylight sensors are for. These blocks send out a redstone signal that has it's power dependent on what time of the day/night it is.

Daylight sensors come in 2 different types: the regular and the inverted.

For your situation, the inverted type is better to use, as it starts sending out redstone signal during dusk. You simply place the sensor, place a 1 block long redstone wire next to it that powers a command block that sends the message to chat. The syntax of a command that would say in chat "Goodnight" would be:

/tellraw @a {"rawtext":[{"text":"Goodnight"}]}

For hiding the contraption, I suggest using non-opaque blocks. Lava seems to work just fine for this.

7
  • Daylight sensors would have to be in broad daylight to be effective right? Even if the were inverted, they'd still need to be in sunlight some times to differentiate. This is in a survival world where we want to explore a lot, and I don't want them to see any command blocks behind the scenes. What can I do? Jun 14 '19 at 4:57
  • I see. I'm not very familiar with the Bedrock edition, but I'll try to come up with a solution other than daylight sensors.
    – Quijibo
    Jun 14 '19 at 5:02
  • I'm not saying we can't use daylight sensors. I'm just saying I need to hide the daylight sensor, while still picking up the change in light. Jun 14 '19 at 5:03
  • 1
    What do you need hep with? You seem to have the command syntax correct, now you can just lead another, longer redstone wire (8 blocks long is for sunset, 11 is for complete night time) and connect it to the command block
    – Quijibo
    Jun 14 '19 at 5:15
  • 1
    Thank you! Just needed to know how long the line had to be. Jun 14 '19 at 5:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.