Jump to content

Skript Tutorial - Basics


Recommended Posts

Hello all, in this tutorial I will be sharing the basics of Skript. This tutorial will include how to install Skript, how to indent and basic understanding of Skript features.

If you don't already have Skript installed, this is how you install it.

Start your server
Click "Edit Server"
Head over to "Plugins"
Search "Skript" in the search bar
You will see alot of plugins named "Skript Addon: [addon]", don't get them yet
Scroll down till you find "Skript"
Click on "Skript"
Click "Install Plugin"
Restart your server

To access Skript files and make Skripts, do what is shown below

Start your server
Click "Edit Server"
Head over to "File Manager"
Find the "Plugins" folder
Open the "Plugins" folder
Find "Skript" in the "Plugins" folder and open it
You should see a folder named "Scripts", click it
To add a skript, click on the button that says "Create a file" when you hover over it
Enter the file name that you want it to be called. Make sure it has ".sk" at the end and click "Create"
Find the file you have just created and open it
You can now add code into that skript

Reloading, Enabling and Disabling skripts

Once you have added some code to a skript, you will need to reload the skript to get that functionality
Start your server
Join your server
Type in chat "/sk reload [skriptname]". If that filename exists in the "Scripts" folder then it should reload.
To disable a skript all you need to do is "/sk disable [skriptname]"
To enable a disabled skript, do "/sk enable [skriptname]"

Indentation

Indentation is where alot of people mess up when skripting, they simply do not understand and need a way to learn how to indent.

Indentation consists of spaces and tabs. Tabs are the most popular option as they are easier to do than spaces. You need to make sure that you keep a consistent indentation, meaning you cannot indent 1 line 5 spaces, and the next 7 spaces.

It is always good to remember that you need to always indent the next line whenever the previous line ends with a :, an exception to this is in command statements with items before the trigger such as permission: or aliases:.

Here is an image of proper indentation:
PbfZ12M.png.53c450eb3acf2e2e90e9baeaf2566fae.png
 
Syntaxes

Syntaxes can be tricky to learn for a beginner but once you learn them, it is easy to become really good at reading/understanding them

Lets say for example we have this syntax:
create [a] [new] gui [[with id] %-string%] with %inventory% [and shape %-strings%] 
The [] means it is optional and you dont need to include it.
The %% means an object like player or string

Lets take a look at another syntax:
create [a] [new] [(full)] bound with id %string% (within|between) %location% and %location% 
The [] means it is optional and you dont need to include it.
The %% means an object like player or string
The (example 1|example 2) means you can use example 1 instead of example 2 or example 2 instead of example 1

Tutorials

A good way of learning Skript is through tutorials on YouTube, they can be very helpful and is how I learned skript at the very start.

A good channel to learn Skript from is the offical Minehut YouTube Channel

That's all I have time for today folks, I hope you learned something from this tutorial.

Edited by emopediaMC
spelling errors
  • Like 3

Developer

 

Joined Minecraft in 2010 on PC

Joined Minehut in August 2016

1 year Skript experience

2 months Java experience

5 months Javascript experience

 

Link to comment
Share on other sites

You should do different events, how to add permissions, how to add aliases, and what trigger, send, and broadcast does. Also nice beginner tutorial ❤️

  • Like 1

Discord (Please tell me your from Minehut forums so I don't think your some rando XD): FrostPVP™#4733

Server: Bedr0ckPVP.minehut.gg

Username: FrostPVP

Screenshot 2021-02-27 211155.png

Link to comment
Share on other sites

1 hour ago, BedR0ckPVP said:

You should do different events, how to add permissions, how to add aliases, and what trigger, send, and broadcast does. Also nice beginner tutorial ❤️

I'm going to be making more Skript Tutorials, thanks for the suggestions.

Developer

 

Joined Minecraft in 2010 on PC

Joined Minehut in August 2016

1 year Skript experience

2 months Java experience

5 months Javascript experience

 

Link to comment
Share on other sites

ÙwÚ

Great tutorial 😮

Edited by CoolProgrammer
  • Like 1

Hello there! If you're reading this, hope you're having a wonderful day!

 

Feel free to contact me via Discord (CoolProgrammer#1920) for any help.

My DMs are always open for help.

You can also message via. forum messages for help.

1604908226_ScreenShot2021-01-28at10_32_28AM.png.2646ad6be239a9d0756a99e8e15602ab.png

Also, don't hesitate to leave a like on my post if I helped you in any way.

Link to comment
Share on other sites

Awesome tutorial!

  • Like 1

Joined on January 17th 2016

VIP since April 5 2017 - August 1st 2019

JrMod since August 1st

Mod since October 1st

SrMod since November 2nd - 2/7/21

Patron since February 8 - 3/7/21

Mod since March 8 2021

Retired since idk when

 

    [IMG]    button.png?t=Appeal&f=Calibri-Bold&ts=26&tc=fff&tshs=1&tshc=000&hp=20&vp=8&c=10&bgt=gradient&bgc=1d0dea&ebgc=1a0855&be=1 button.png?t=Rules&f=Calibri-Bold&ts=26&tc=fff&tshs=1&tshc=000&hp=20&vp=8&c=10&bgt=gradient&bgc=1d0dea&ebgc=1a0855&be=1  

If I helped or entertained you at all today, please react with a heart.

Link to comment
Share on other sites

Cool Tutorial! 

  • Like 1

Discord - tarna256

In-game name - _Tarna_

Website - https://tarna.dev
Paste Site: https://paste.tarna.dev

---------------------------------------------------------

[VIP] - 7/27/2020

Community Support - 7/8/20 | 11/3/20

Helper  - 11/3/20 - 2/21/21

Moderator - 2/21/21 - 5/17/21

❤️ - 5/17/21 - now

Moderator - 12/20/22 - now

---------------------------------------------------------

image.png.70849a9b84e0347ce107b8e3eaee312c.pngimage.png.2111009afbd8bef10966ba9ede35a199.png

Link to comment
Share on other sites

  • 4 months later...
  • 1 year later...
  • 6 months later...

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