Jump to content

Can someone make me a spawn skript


EmptyRooms_

Recommended Posts

i've been using repeating command blocks for spawn however when someone is new they just teleport to the other side of the wall or on the rooftop also make me a /spawn command which teleports you to the setspawn and /setspawn just creates a spawn to your location making new players teleport there

Link to comment
Share on other sites

12 hours ago, EmptyRooms_ said:

i've been using repeating command blocks for spawn however when someone is new they just teleport to the other side of the wall or on the rooftop also make me a /spawn command which teleports you to the setspawn and /setspawn just creates a spawn to your location making new players teleport there

 
 
 
command /setspawn:
	permission: example.setspawn
	permission message: &4No permission.
	trigger:
		set {spawn} to location of player
		send "&aSet spawn!"

command /spawn:
	trigger:
		teleport player to {spawn}

on join:
	if player has not played before:
		teleport player to {spawn}

 

Link to comment
Share on other sites

thank you i also need it that if your in combat you cant do /spawn and you only get combat if you get hit by a player and you have to not move for 5 seconds in order to teleport to spawn

8 hours ago, Timely said:
 
 
 
command /setspawn:
	permission: example.setspawn
	permission message: &4No permission.
	trigger:
		set {spawn} to location of player
		send "&aSet spawn!"

command /spawn:
	trigger:
		teleport player to {spawn}

on join:
	if player has not played before:
		teleport player to {spawn}

 

 

Link to comment
Share on other sites

If you want a combat log script, I have one posted in script releases. It's fully customisable with configuration for blocking commands and logout.

 

However if this isn't what you want below is a script I often send to people:
It requires them to stand still for 5 seconds before teleporting.

command /spawn:
	trigger:
    	set {_loc} to location of block at player's location
        send "&8[&cSpawn&8] &fTeleporting in 5 seconds... Don't move."
        wait 5 seconds
        {_loc} is not location of block at player's location:
        	send "&8[&cSpawn&8] &fTeleportation cancelled, You moved."
        else:
        	teleport player to {spawn}
        	send "&8[&cSpawn&8] &fTeleported."

command /setspawn:
	permission: spawn.set
    trigger:
    	set {spawn} to player's location
        send "&8[&cSpawn&8] &fSet spawn to your location."

Please leave a like (💙) if you found this helpful. It motivates me to help people more!

  • Like 1

Minecraft Ranks
[DEFAULT] - 9th October 2020
[PRO] - 21st November 2020
[PATRON] - 27th October 2021

Proficiency
Python - 8 Years
C/C++ - 5 Years
Skript - 4 Years
Javascript - 3 Year
Java - 1 Year

Links
Discord - kegnh#1234

 
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...