How To Create a /spawn Command with Skript on Minehut

/spawn skript minehut

So if you are building a server on Minehut and you would like your players to be able to type /spawn in chat and then teleport to spawn, then this tutorial is for you! Recommended: install and set up permissions first!

First, go to your server dashboard and select plugins. Then search for Skript and find the plugin just called Skript. The rest will be add-ons we don’t want. Install the Skript Plugin.

Create a /spawn Command with Skript on Minehut
Head to the Plugins section
Create a /spawn Command with Skript on Minehut
Search up Skript
/spawn command minecraft
Install

Now we need to go to file manager, scroll down and select plugins. Scroll down and open the Skript folder. Then select scripts.

minecraft /spawn command
Head to the file manager section
/spawn minehut
Plugins folder
/spawn minehut
Head to the Skript folder and go into scripts

Now we need to create our custom script in this folder. Click: ‘create a file’ at the top. When you are prompted to enter the file name, enter this:

spawn.sk
Create a file at the top
minehut make /spawn with skript
Create a spawn.sk file

Now we need to actually program the script. Open the spawn.sk folder and paste in the following code for ease:

command /spawn:
	permission: group.default
	trigger:	
		teleport player to location at 0.5, 64, -7.4 in world "world"

Then click save.

/spawn skript
Go into spawn.sk
skript /spawn
Paste in the code
minehut do /spawn
Click save

So what does this command do? Well, it creates a new command called /spawn, sets the permission to the default permission, and when it is triggered it will teleport you to those coordinates. At the moment, it will teleport you to 0.5, 64, -7.4 in the world. So change those coordinates to whatever the coordinates of your world spawn point are.

For example:

command /spawn:
	permission: group.default
	trigger:	
		teleport player to location at {YOUR COORDS HERE} in world "world"

Replace your, coords, here with the coordinates of your world spawn. Remember to click save!

Now when you go into your server, type:

/sk reload spawn

Then type:

/spawn

..and you should teleport to whatever spawn coordinates you entered into the script!

Done!

Just make sure that everytime you update it you type /sk reload spawn to reload the script!

View more of our posts here.