Okay so in this tutorial, I will show you how to add options. Here is the table of contents:
- What are options?
- How to set options
- How to use them in your skripts
Okay, so what are options?
Options are as they sound options. You put them at the top of the skript and you can set them to a string or a boolean (true or false). Its like a config but easier.
Okay so now what know what options are. How do you set them?
Well you first put Options: at the top of the skript. You can add comments. Here is an example:
# This is a comment. It will still work though.
Options:
Ok, now if you want to set them, you have to make a new line, then indent (2 spaces or 1 tab). You can put what ever you like, for example, a join message. Keep in mind that you don't need qoutation's. If you do add quotes, it will add it to the option when sent.
# This is a comment. It will still work though.
Options:
Join: &6&lWelcome!
There we go! You just set your first option! So now, how do you use them in commands or stuff like that?
Well you need {}. Put the option inside. Keep in mind that Skript is case-sensitive and if you dont capitalize, it will not work. Make sure to put @. So like this:
# This is a comment. It will still work though.
Options:
Join: &6&lWelcome!
on join:
set join message to "{@Join}"
We have just used the option in a on join event. If we were to join this server, it would send us Welcome. You can test this by copying this Skript, and pasting into a .sk file.
You must be logged in to comment
Feb. 25, 2023, 8:40 p.m. - ShaneBee ¶
This is untrue. They are just set to code, you can set an option to anything.
When your script (yes, script with a "c") is parsed, the option in your code is replaced with whatever is in the option itself.
Dec. 7, 2024, 3:55 a.m. - xildflyer ¶
this sucks
Dec. 7, 2024, 3:55 a.m. - xildflyer ¶
this sucks
Dec. 7, 2024, 3:59 a.m. - xildflyer ¶
Okay, so like, Skript is kinda the worst thing ever if you actually think about it. Like, yeah, it’s "easy to use" or whatever, but that’s exactly the problem. It’s TOO easy. It’s like giving someone who doesn’t know how to code a tool to just write Minecraft plugins without learning anything important. And then they act like they’re actual developers, but they’re NOT. It’s so annoying.
First of all, Skript is super laggy. Every time someone on my server uses a Skript plugin, the TPS (ticks per second, duh) drops to like, 2. It’s like Skript takes your server and says, “Nah, I’m gonna ruin it now.” Real plugins made in Java don’t do that. They’re faster and just better in every way. If Skript was good, it wouldn’t make my server feel like a potato running Windows 98.
Also, Skript is so limited! Like, okay, maybe you can make a basic teleport command or something cool like an auto-miner, but that’s it. What if I want to make something REALLY cool, like a custom mob with 50 abilities or an economy plugin that’s super detailed? Nope, Skript can’t handle it. But if you use Java (which is what real developers use, by the way), you can literally do anything you want. With Skript, you're just stuck making basic stuff that looks like it came from 2012.
And can we talk about how confusing Skript can be? People say it’s “easy to learn,” but nah, it’s just written in this weird, fake coding language that doesn’t make sense half the time. Like, why do you have to write stuff like “on place of diamond block”? Just write the code like a normal human! Real coding languages have rules and structure. Skript feels like someone made it up on a bad day and said, “Here, have fun being frustrated.”
Finally, people who use Skript are kinda annoying (no offense if you do, but like, come on). They always act like their five-line teleport Skript is the greatest thing ever. Meanwhile, Java devs are over here coding entire game modes and fixing actual bugs. Skripters don’t even have to try. They’re like, “Look, I made a whole server with Skript!” but it’s just a laggy mess with 10 commands that break half the time.
In conclusion, Skript is bad. It’s laggy, limited, confusing, and makes people think they’re developers when they’re really not. If you want to make cool plugins or run a good server, just learn Java. It’s harder, sure, but at least you won’t be stuck with Skript, ruining everything. So yeah, Skript is lame, and that’s the truth.