How to make a Script? - LucFr1746/Minecraft-Coding GitHub Wiki
As mentioned earlier, scripts are written in text files that end in .sk
. These scripts live in the plugins\Skript\scripts
folder. You will notice several example scripts generated when you first start up Skript. These files will have a - prefix in their name, scripts with this prefix are disabled and will not be loaded. Removing the - prefix will allow for the script to be loaded and run.
Now let's make your first script file!
Using a text editor, make a text file that is named hello.sk
and save it to your plugins\Skript\scripts
folder. Keep in mind that Skript will also load scripts in folders inside the "scripts" folder such as plugins\Skript\scripts\subFolder\test.sk
. Now add the text below:
on join:
broadcast "Welcome to Skript!"
and save the file!
Congrats you have just written your first script! let's talk about loading it on the server.