Jump to content
  • 0

Im having trouble over writing the world spawn so every new player will spawn some where. Im trying to set spawn some where else but its not working it keeps spawning me at the world spawn.


Bfb635

Question

13 answers to this question

Recommended Posts

  • 0

Im trying to make it so people who join for the first time spawn in an igloo and other people like walk over a pressure plate which sets their spawn right there. The command says it set the spawnpoint no issues, but when i die i respawn in the igloo

 

 

Link to comment
Share on other sites

  • 0

If you use EssentialsSpawn it may override /setworldspawn. In that case, it is /setspawn. If you don't know what that is, you likely don't need to worry about it as you haven't installed it.

There is a gamerule called spawnRadius that will disperse players in a small radius near the world spawn. This isn't ideal for servers, it is advisable to do /gamerule spawnRadius 0 so the spawn point is predictable.

Link to comment
Share on other sites

  • 0
Just now, EnderEyeGames said:

This is false, the /spawnpoint [player] [coordinates] command does exactly this.

Yep dont mind me, I haven't used actual MC commands in a while. #skript

If I helped you at all, leave a like!

IGN: _omga
Discord: omega#1000

 

Link to comment
Share on other sites

  • 0

Heres a /spawn skript

on join:
	teleport player to {spawn}
	
command /setspawn:
	trigger:
		if player has permission "spawn.set":
			if {spawn} is not set:
				send "[ServerName] &aThe spawn has been set"
				set {spawn} to location of player
				stop
			
command /delspawn:
	trigger:
		if player has permission "spawn.delete":
			if {spawn} is set:
				send "[ServerName] &aThe spawn has been deleted"
				delete {spawn}
				stop

			
command /spawn:
	trigger:
		teleport player to {spawn}
		send "[ServerName] &aYpu have been teleported to spawn"
I used to play Minehut I guess?
Yeah, I still watch the forums for some reason. (15/5/2023)
Link to comment
Share on other sites

  • 0
4 hours ago, pizzaschut said:

Heres a /spawn skript


on join:
	teleport player to {spawn}
	
command /setspawn:
	trigger:
		if player has permission "spawn.set":
			if {spawn} is not set:
				send "[ServerName] &aThe spawn has been set"
				set {spawn} to location of player
				stop
			
command /delspawn:
	trigger:
		if player has permission "spawn.delete":
			if {spawn} is set:
				send "[ServerName] &aThe spawn has been deleted"
				delete {spawn}
				stop

			
command /spawn:
	trigger:
		teleport player to {spawn}
		send "[ServerName] &aYpu have been teleported to spawn"

1. This doesn't actually do what they want. They need something that makes the spawnpoint one thing for the first join and a different thing for subsequent deaths.

2. "if player has permission example.permission" in a command event should be avoided, instead use the built in permission mechanic:

command /troll <player>:
  permission: sktroll.troll
  permission message: &4[&6Troll&4]&c You have no permission.
  trigger:
    # do trolling stuff

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...