How to setup Skript & Make a Skript!

Simple as pie!

Simple as pie!

When setting up Skript and writing your first script, getting started should be easy! Here is a guide on how to install Skript and create your very first code file.

~ How to install and set up Skript:

Disclaimer: Ensure you are on a minecraft software that supports plugins (such as Paper, Spigot, or Purpur) before attempting to install Skript.

Step 1. Download the latest version of the Skript plugin from its official release page -- Click me!. -- You can also download it by going to the Plugins tab of your panel. Refer to "How to install plugins"

1.1. When your on the Github site, you need to press "Patch Release x.xx.x" or something along those lines. As seen in the image below.

Skript Github

1.2. Then scroll down and press "Skript-x.xx.x.jar" , this'll start the installation of the file. After it finishes, follow the rest of the steps and you'll be good to go.

Step 2. Go to your MCSH Server Panel or connect via SFTP.

Step 3. Navigate to your server's plugins folder.

Step 4. Upload the Skript.jar file into the plugins folder. -- IMPORTANT! Make sure you place the JAR directly inside the plugins folder and NOT inside another plugin folder! BE CAREFUL!

Step 5. Restart your server completely to generate the required Skript files and directories.

Step 6. Check your server console or type /plugins in-game to verify that Skript is enabled and showing green.

Step 7. Done! That simple :)

~ How to create your FIRST Skript:

Disclaimer: Skript code relies heavily on correct indentation (tabs or spaces). Mixing tabs and spaces will result in parse errors when reloading.

Step 1. Go to your Server Panel File Manager or connect via SFTP.

Step 2. Navigate to plugins/Skript/scripts.

Step 3. Create a new file and name it helloworld.sk (or anything ending in .sk).

Step 4. Open the file and write your code logic.

4.1. Type your event trigger on the first line: command /hello: 4.2. Press Enter, then press Tab once to indent the next lines 4.3. Add a trigger condition: trigger: 4.4. Press Enter, indent twice, and add your action: send "&aHello, world! Welcome to my server!" to player 4.5. Add a sound effect (optional): play sound "entity.player.levelup" to player

4.6. -- Example command! Incl. Permission block command /hello: permission: custom.hello permission message: &cYou do not have permission to use this command! description: Sends a warm greeting to the player. trigger: send "&a&lWELCOME! &fHello &e%player%&f, welcome to the server!" to player play sound "entity.player.levelup" with volume 0.5 and pitch 1 to player

Step 5. Save the file in your editor or upload it back to the scripts folder.

Step 6. In-game or via console, run /sk reload helloworld (or /sk reload all) to compile your script.

Step 7. Type /hello in chat to test your brand-new script!

Step 8. Done!

~ Guide created by Storm [chefbonqueque] , DM me for any additional assistance

~ Storm: MCSH Staff

Related guides

All community guides

Loading…