I am trying to make a command that will keep people out of my base. I want it to warn people using the title command that will say, "Warning: Area Protected By Lv. 8 Magic Circle" in red with the Lv. 8 in light blue and set them to survival mode. Then once they get closer kill them with the /kill command. I want to be able to go into the area without getting warned or killed or set to survival mode. I want to be able to add a scoreboard value to players who will be allowed in. I want it to be a specific number so I can use it as a security code. I also don't want to have to have myself use this code to get in but be allowed no matter what. If possible could it be in one command? If it can't, how do I set up the command blocks? How would I do this? I know this is possible I just can't figure out how to get any of the individual commands to work or how to link them together. Much thanks. Hope you guys like a challenge.
I don't exactly know how this'll all work, so I'm just going to add the /title command. Is that alright?
title @a[r=<RADIUS>] title [{"text":"Warning: Area Protected By ","color":"red"},{"text":"Lv. 8","color":"aqua","bold":true},{"text":" Magic Circle","color":"red"}]
But this might be too many words to fit on a screen so I will separate them:
Use these two instead:
First command:
title @a[r=<RADIUS>] title [{"text":"Warning: Area Protected By","color":"red"}]
Second Command:
title @a[r=<RADIUS>] subtitle [{"text":"Lv. 8 ","color":"aqua","bold":true},{"text":"Magic Circle","color":"red"}]
I am trying to make a command that will keep people out of my base. I want it to warn people using the title command that will say, "Warning: Area Protected By Lv. 8 Magic Circle" in red with the Lv. 8 in light blue and set them to survival mode. Then once they get closer kill them with the /kill command. I want to be able to go into the area without getting warned or killed or set to survival mode. I want to be able to add a scoreboard value to players who will be allowed in. I want it to be a specific number so I can use it as a security code. I also don't want to have to have myself use this code to get in but be allowed no matter what. If possible could it be in one command? If it can't, how do I set up the command blocks? How would I do this? I know this is possible I just can't figure out how to get any of the individual commands to work or how to link them together. Much thanks. Hope you guys like a challenge.
I don't exactly know how this'll all work, so I'm just going to add the /title command. Is that alright?
But this might be too many words to fit on a screen so I will separate them:
Use these two instead:
First command:
title @a[r=<RADIUS>] title [{"text":"Warning: Area Protected By","color":"red"}]
Second Command:
title @a[r=<RADIUS>] subtitle [{"text":"Lv. 8 ","color":"aqua","bold":true},{"text":"Magic Circle","color":"red"}]
Hope this helps! Haven't tested them yet!
Bob Ross is kool
Thank you this will help so much. Btw Bob Ross is cool. 42