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
Thank you so much for this, you don't even know...
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.
Not on a Vanilla Server
What plugins do you have on this Vanilla Server?
Vanilla means no plugins, hes downloaded server from minecraft.net not bukkit or spigot or spout, vanilla!
Are you serious? seriously?!??!? VANILLA FREAKIN MEANS NO MODS OR PLUGINS!!!!!!!!!
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...
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
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
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?
or you can give them access to the vanilla command /spawnpoint