1

VANILLA : Allow Players to Set thier spawn with book.

mocaveman's Avatar mocaveman9/17/14 10:32 am
7/10/2015 5:25 pm
flyingturtles4224's Avatar flyingturtles4224
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
Posted by mocaveman's Avatar
mocaveman
Level 1 : New Architect
5

Create an account or sign in to comment.

11

1
07/10/2015 5:25 pm
Level 1 : New Miner
flyingturtles4224
flyingturtles4224's Avatar
Thank you so much for this, you don't even know...
1
09/17/2014 3:20 pm
Level 5 : Apprentice Architect
Purple Nurple
Purple Nurple's Avatar
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
09/17/2014 3:27 pm
Level 1 : New Architect
mocaveman
mocaveman's Avatar
Not on a Vanilla Server
1
09/18/2014 1:19 am
Level 5 : Apprentice Architect
Purple Nurple
Purple Nurple's Avatar
What plugins do you have on this Vanilla Server?
1
09/18/2014 1:25 am
Level 6 : Apprentice Dragon
1248148095715
1248148095715's Avatar
Vanilla means no plugins, hes downloaded server from minecraft.net not bukkit or spigot or spout, vanilla!
1
09/18/2014 1:25 am
Level 19 : Journeyman Goblin
Littleminer14
Littleminer14's Avatar
Are you serious? seriously?!??!? VANILLA FREAKIN MEANS NO MODS OR PLUGINS!!!!!!!!!
1
09/17/2014 3:11 pm
Level 1 : New Architect
mocaveman
mocaveman's Avatar
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...
1
09/17/2014 3:02 pm
Level 29 : Expert Modder
ArcaneGamer-
ArcaneGamer-'s Avatar
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
09/17/2014 2:12 pm
Level 47 : Master Mlem Mlem Bat
Karrfis
Karrfis's Avatar
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
1
09/17/2014 1:24 pm
Level 1 : New Architect
mocaveman
mocaveman's Avatar
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
09/17/2014 10:47 am
Level 47 : Master Mlem Mlem Bat
Karrfis
Karrfis's Avatar
or you can give them access to the vanilla command /spawnpoint
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome