1
VANILLA : Allow Players to Set thier spawn with book.
I know that it is common knowledge but I had a hard time piecing together the following information. I wanted to let my Vanilla players to be able to set their own spawn point without having to go to bed. In 1.8 I used trigger and execute to do so.
If my solution sucks, well thanks for the edu. If not I hope it helps you.
Thanks to BeefZilla for helping me put this together.
I created a book with JSON text to pull the trigger. Below are my pieces.
-Player book below
----------------------------------------------------------------------------------------------------
/give @p written_book 1 0 {title:"Player book",author:"",
pages:["{text:\"Travel\",color:red,
extra:[{text:\"\n\n\"},
{text:\"Set my spawn\",color:black,clickEvent:{action:run_command,value:\"/trigger Setmyspawn set 1\"}}]
}"]}
-----------------------------------------------------------------------------------------------------
Command Blocks 1 to 5
/testfor @p[score_Setmyspawn_min=1]
/execute @a[score_Setmyspawn_min=1] ~ ~ ~ /spawnpoint @p[score_Setmyspawn_min=1] ~ ~ ~
/execute @a[score_Setmyspawn_min=1] ~ ~ ~ /tellraw @p{text:"Your spawn point has been set!",color:gold,bold:true}
/scoreboard players enable @p[score_Setmyspawn_min=1] Setmyspawn
/scoreboard players set @p[score_Setmyspawn_min=1] Setmyspawn 0
If my solution sucks, well thanks for the edu. If not I hope it helps you.
Thanks to BeefZilla for helping me put this together.
I created a book with JSON text to pull the trigger. Below are my pieces.
-Player book below
----------------------------------------------------------------------------------------------------
/give @p written_book 1 0 {title:"Player book",author:"",
pages:["{text:\"Travel\",color:red,
extra:[{text:\"\n\n\"},
{text:\"Set my spawn\",color:black,clickEvent:{action:run_command,value:\"/trigger Setmyspawn set 1\"}}]
}"]}
-----------------------------------------------------------------------------------------------------
Command Blocks 1 to 5
/testfor @p[score_Setmyspawn_min=1]
/execute @a[score_Setmyspawn_min=1] ~ ~ ~ /spawnpoint @p[score_Setmyspawn_min=1] ~ ~ ~
/execute @a[score_Setmyspawn_min=1] ~ ~ ~ /tellraw @p{text:"Your spawn point has been set!",color:gold,bold:true}
/scoreboard players enable @p[score_Setmyspawn_min=1] Setmyspawn
/scoreboard players set @p[score_Setmyspawn_min=1] Setmyspawn 0
Create an account or sign in to comment.
11
1
Thank you so much for this, you don't even know...
1
Or you could just give them access to /spawnpoint set or if that's too hard, give them access to /sethome and give them multiple homes.
1
Not on a Vanilla Server
1
What plugins do you have on this Vanilla Server?
1
Vanilla means no plugins, hes downloaded server from minecraft.net not bukkit or spigot or spout, vanilla!
1
Are you serious? seriously?!??!? VANILLA FREAKIN MEANS NO MODS OR PLUGINS!!!!!!!!!
1
Permissions in a Vanilla Server are accomplished through elaborate scoreboard and command block definition I believe.
My however elaborate but functional book is the only way I have found to do this without passing out OP on my Vanilla Server. The new objective type "Trigger" allows players to set a value and using the spawn chunk for command blocks works because I can use the Execute to make the location relevant to the player's position not the cords of the command block.
So, OK,,, still a valid book...
My however elaborate but functional book is the only way I have found to do this without passing out OP on my Vanilla Server. The new objective type "Trigger" allows players to set a value and using the spawn chunk for command blocks works because I can use the Execute to make the location relevant to the player's position not the cords of the command block.
So, OK,,, still a valid book...
1
is there any type of permissions.yml file in your server files? if so, i think you can add the /spawnpoint permission in there and it will give it to all players
1
you could let them have access to OP with your trust on them
as far as i know you cannot setup permisisonsin vanilla minecraft without a 3rd party plugin
as far as i know you cannot setup permisisonsin vanilla minecraft without a 3rd party plugin
1
LOL. that sounds really easy. I may have over thought this process. Although I could not find how to give any permissions without giving out OP. Thanks for the humor regardless. Perhaps you could share how to give out individual permissions?
1
or you can give them access to the vanilla command /spawnpoint