Ok, I just realized that I am an idiot and that the @p runs from the command blocks, not the bed the people were sleeping in, so that's one problem fixed, but I still don't know how to make it say that the person that slept is the one that slept.
I am in a realms server with some friends, and some of us have been AFKing overnight, which means those who still wish to play can't sleep. I set up a command block system where when one person sleeps, it will change it to day, and it's working great.
The problem is that I tried to add another command block to give a message when someone sleeps. Here is the tellraw command.
/tellraw @a [{"color":"gold","selector":"@p"},{"color":"gold","text":" went to bed. Sweet dreams! ","bold":false}]
For some reason, this is alerting everyone as I intended it to, but it says only my name went to sleep, even if it is another player.
Does anyone know what I need to edit to make it say the name of the person who slept instead of just my name.
Hey, thanks for the answer! I have 16G Ram on my PC and went all the way up to 14 with the method you said, but I'm still getting the same error message.
Hello! I'm hoping this isn't an answer that's easily found, and I just missed it, but I just recently decided to play some minecraft again after not playing for a few years. I'm downloaded the launcher, and this is what happens:
The first time I try and open minecraft it crashes before I even see the main menu. After I do that, I can get to the main menu that has options for singleplayer and multiplayer, and when I try to go to a server or my own world, it crashes. It doesn't even say that it's loading the world, it just immediately crashes after I try and open the world. I read that I needed to send a link to my crash log, so here's what all it says when I start it up:
0
Ok, I just realized that I am an idiot and that the @p runs from the command blocks, not the bed the people were sleeping in, so that's one problem fixed, but I still don't know how to make it say that the person that slept is the one that slept.
0
Hello everyone,
I am in a realms server with some friends, and some of us have been AFKing overnight, which means those who still wish to play can't sleep. I set up a command block system where when one person sleeps, it will change it to day, and it's working great.
The problem is that I tried to add another command block to give a message when someone sleeps. Here is the tellraw command.
/tellraw @a [{"color":"gold","selector":"@p"},{"color":"gold","text":" went to bed. Sweet dreams! ","bold":false}]
For some reason, this is alerting everyone as I intended it to, but it says only my name went to sleep, even if it is another player.
Does anyone know what I need to edit to make it say the name of the person who slept instead of just my name.
Thanks in advance.
0
Hey, thanks for the answer! I have 16G Ram on my PC and went all the way up to 14 with the method you said, but I'm still getting the same error message.
0
Hello! I'm hoping this isn't an answer that's easily found, and I just missed it, but I just recently decided to play some minecraft again after not playing for a few years. I'm downloaded the launcher, and this is what happens:
The first time I try and open minecraft it crashes before I even see the main menu. After I do that, I can get to the main menu that has options for singleplayer and multiplayer, and when I try to go to a server or my own world, it crashes. It doesn't even say that it's loading the world, it just immediately crashes after I try and open the world. I read that I needed to send a link to my crash log, so here's what all it says when I start it up:
https://paste.ubuntu.com/p/vB3tsnspsj/
Hope someone can help with this, and thank you in advance!