Jump to content

Skript - An extremely easy way to customize your server - no Java knowledge required.


Jinesh

Recommended Posts

SKRIPT

Hi everyone! Today I'd like to talk about and showcase a server side plugin that I think everyone who runs a server or is thinking of starting a server should know about. The plugin is called Skript and was created by Peter Güttinger aka Njol. It is amazing https://trackeasy.fun/usps/ https://showbox.tools/.

In a nutshell, Skript is a plugin that allows anyone with a logical mind to create custom events and triggers, all server side, with little to no programming background or knowledge. What Skript does is translate natural language programming to Java. This API is the everyman answer to building a custom server.


HOW DOES IT WORK?

If you are like me you do not have much, if any, programming language experience. My history with programming starts and ends with MS Excel formulas and macros. This lack of knowledge made creating anything custom in a Minecraft/Bukkit environment a very daunting task.

To give you a little history I started building a server about 10 months ago. I relied on downloading Bukkit plugins that fit my theme which was all well and good, but I had to conform to what others thought how things should work.

Another issue was that with the numerous Minecraft updates many of the plugins I initially wanted to use were obsolete or just didn't 100% work any more. It was a frustrating and time consuming process to build the kind of plugin list I wanted.

I wasn't able to really build the kind of server environment I truly wanted until I stumbled upon Skript. I had been waiting for Mojang to come out with their own API and had researched other APIs in development, but with little luck. Skript was right up my alley and allowed me to start coding my own gameplay mechanics immediately.

Skript works like any other server side plugin. You download the .Jar, restart your server, and it loads itself. All you are left to do is start building your custom events. Simply go into your plugins directory, find the Skript folder, and then the skripts folder. Create a file with an .sk extension. Let's use one of my first skripts as an example. Call your file "cannibal.sk". All .sk extension files can be opened in a text editor. I like to use good old Notepad because it's so simple to use and it tells you what line you're on.

The skript "cannibal.sk", as you can guess, has to do with creating an event whereas players can be "eaten". I run a server with a post-apocalyptic theme so it fits, which is important when designing new events. In the file, you will need to type the following:

on death of player:
    chance of 50%
    drop bone at location of player
    drop pork at location of player

Save the file. In the console or in-game you can load the plugin without restarting the server. Type /skript reload cannibal. If you have coded everything correctly the plugin will tell you it's loaded. If not, the plugin will actually identify errors and issues based on the lines in your file. VERY helpful for those new and old to the plugin.

Now, to test, either use /kill or hack a buddy to death. 50% of the time an uncooked pork chop and a bone will drop at the point of death. Simple as that.

Edited by Jinesh
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...