-
Posts
281 -
Joined
-
Last visited
Content Type
Profiles
Forums
Gallery
Blogs
Events
Store
Downloads
Posts posted by emopediaMC
-
-
Today marks the day I officially quit Minehut for good. Too much is going on with me not being able to talk in the Discord anymore without getting muted, to getting blacklisted for telling staff to sort their out. I've had enough with how unfairly I've been treated compared to the other community members.
Good job Minehut, you've impressed me so much in the worst way possible
-
-
dont necro also good if that happens, we can say goodbye to those trash 10 minute servers
-
none of these, i'd say go for a genre that hasn't really been made before on minehut
-
Can someone lock this for necro?
-
Before we start this tutorial, I just wanna say that all credit goes to J__00 for creating the below tutorial, I am simply making it more known by posting it to 3rd party platforms. The original post can be found here: https://skripthub.net/tutorials/50
0.
Hello! If you're reading this tutorial then you probably need help making a scoreboard, if so don't worry, I'll teach you step by step how to make a clean Scoreboard without flickering.0.1
REQUIREMENTS:
Skript
SkBee0.2
List of plugins needed if you want the scoreboard to have currency:
Vault
PlaceholderAPI
Skript-Placeholder0.3 IMPORTANT
If you have SkRayFall installed, go in its config file and change the scoreboard related option.0.4 To actually start coding create a .sk file in the plugins/skript/scripts folder and write the code there.
0.5 Everytime you edit the code in the file, you need to save it and run this command in game or via console /Sk reload nameofthefile.sk (CASE SENSITIVE)
0.6 Anything after a # is a comment and does not modify the code.
0.7 A common mistake when using an On join event is to save, reload and expect it to change, on join means that you have to leave and JOIN back to see the changes.
0.8 Scoreboard lines go from 1 to 15
1.
First we need an event:on join:with this event the scoreboard will be set to the player everytime they join, but that won't happen by itselfwe need to add a:
2.
WHILE loop, which is a very useful condition and is used to make something constantly happen (WARNING: when using a while loop, ALWAYS put a "wait 1 tick" at the end, else the server will crash):on join: while player is online:makes the skript activate when a player joins and makes it stay active while the player is online.
3.
-A
A scoreboard does NOT require to be "created", you just have to set its title and lines which is what this step is about, let's start from the title:on join: while player is online: set title of player's scoreboard to "&eMy Server" #it's up to you if you want to use color codes, this is just an example wait 1 second3.
-B
After setting the title we need to set 1 or more lines, let's set 4 for now:
Note: Scoreboard lines start from 0, bigger numbers will go above their predecessor.on join: while player is online: set title of player's scoreboard to "&eMy Server" set line 4 of player's scoreboard to "&a " #set a random color code and a space to set the line to a blank space. PS: You need to set different color codes or add more spaces for each blank line, there can't be 2 lines with the same exact name. set line 3 of player's scoreboard to "&fPlayer: " set line 2 of player's scoreboard to "&fKills: " set line 1 of player's scoreboard to "&7Server Ip:" wait 1 secondThere! With just 5 short lines of code we added 4 lines to the scoreboard, you can go ahead and do the same process for all the other lines, but first let me show you how to actually add statistics like Kills or just your name, NEXT STEP:
4.
-A
The first thing we're going to add now is %player%, now, what does this mean? It means YOUR name, whenever an event is triggered and "player" is used in the following lines, the lines that used it will be about that player likegive 1 diamond to player #the player that triggered whatever leads to this line!Note: always put it between %% when in a text, so that skript knows you're trying to use the player in the text.
Knowing this we can add it to the scoreboard line dedicated to the player name:on join: while player is online: set title of player's scoreboard to "&eMy Server" set line 4 of player's scoreboard to "&a " #set a random color code and a space to set the line to a blank space. PS: You need to set different color codes or add more spaces for each blank line, there can't be 2 lines with the same exact name. set line 3 of player's scoreboard to "&fPlayer: &b%player%" set line 2 of player's scoreboard to "&fKills: " set line 1 of player's scoreboard to "&7Server Ip:" wait 1 second4.
-B
The server IP can be manually added:on join: while player is online: set title of player's scoreboard to "&eMy Server" set line 4 of player's scoreboard to "&a " #set a random color code and a space to set the line to a blank space. PS: You need to set different color codes or add more spaces for each blank line, there can't be 2 lines with the same exact name. set line 3 of player's scoreboard to "&fPlayer: &b%player%" set line 2 of player's scoreboard to "&fKills: " set line 1 of player's scoreboard to "&7Server Ip: Play.MyServer.com" wait 1 second4.
-CNow to the interesting part, kills, what's written here about kills can be used with deaths, it will later be shown how.
To add Kills we need skript to have a variable that equals to the amount of them the player has.
A variable is skript's way to save data, every variable has a name and a value:Knowing this, we can now create a variable by adding a few lines before the while loop,
To create a variable we first need to decide if it's a global variable or a player variable, in this case we want a player variable , here's an example: {nameofthevariable::%player%} (the name of the variable is case sensitive) (if the value of the variable is important then put %player's uuid% instead of %player%, using the player's uuid stores data and tags it as data of that player even when he changes his minecraft name, if you use %player% with a player and they change their nick, the data will be attached to the old username.Adding the variable creation to the "on join" event means that we need to check if the player joining arleady has a value for that variable, else the value will be overridden.
To do so let's add a condition to check if the variable is set for the joining player's uuid:on join: if {kills::%player's uuid%} is not set: set {kills::%player's uuid%} to 0 while player is online: ...This way, if the player joining is first joining or just joining after we added these lines, we're setting their kills variable to 0; to make kills have sense, let's add deaths as well and let's add them to the scoreboard:
To add a variable in a text, just like the expressions, put it between %% Example: %{kills::%player's uuid%}%
on join: if {kills::%player's uuid%} is not set: set {kills::%player's uuid%} to 0 if {deaths::%player's uuid%} is not set: set {deaths::%player's uuid%} to 0 while player is online: set line 5 of player's scoreboard to "&a " set line 4 of player's scoreboard to "&fPlayer: &b%player%" set line 3 of player's scoreboard to "&fKills: %{kills::%player's uuid%}%" set line 2 of player's scoreboard to "&fDeaths: %{deaths::%player's uuid%}%" #I've added one more line to add deaths. set line 1 of player's scoreboard to "&7Server Ip: Play.MyServer.com" wait 1 secondJust like that, it will display the kills and deaths count.
But how do these numbers go up? Simple:
5.
We need to write another event after the on join one, like this:...... set line 1 of player's scoreboard to "&7Server Ip: Play.MyServer.com" wait 1 second on death: ......What's going to happen is, we need skript to recognize who's getting killed and who's killing in this event, so we need to set anything to happen only if the ATTACKER and VICTIM are players:
on death: if attacker is a player: if victim is a player: ....Great!
Now all we need to do is make it add 1 kill to the attacker and 1 death to the victim, just like before we're going to use uuids to avoid stats being lost on nickname change:on death: if attacker is a player: if victim is a player: add 1 to {kills::%attacker's uuid%} add 1 to {deaths::%victim's uuiid%}This will add actual stats to the scoreboard.
5.1
As a different event add this:on disconnect: clear player's scoreboardThis will reduce Server Lag and will use less RAM as the server doesn't need to keep the player who left's scoreboard as data and will just clear it.
-
ADDITIONAL
Currency:
If you want to add currency there are multiple ways to do it, but the easiest one is to use vault which has its own eco system.
As mentioned at the beginning you will need:
Vault
PlaceholderAPI
Skript-Placeholder
Now follow these steps and memorize what you're doing:
Run this command:
/papi ecloud download vault^Downloads the data of the vault placeholders
Then:/papi reload
^Adds the downloaded content to the server data (makes it usable)
[Skript-Placeholder] <- will just convert what Papi Downloaded about Vault into Skript expressions. (Nothing to do here)
Ok so, now that we have everything set up, let's add the variable for the player's balance: %player's balance%
(Normally the expression is different and has a different name but that would not work with skript and is why it's required to have skript-placeholder, thus searching for vault placeholders is useless if you're gonna copy paste them into the code, each most important placeholder has it's own skript version when using the previously mentioned skript addon, they're just written in a more "English" way, if you need them, try to find out what they are by yourself as it helps a lot when learning skript!)
on join: if {kills::%player's uuid%} is not set: set {kills::%player's uuid%} to 0 if {deaths::%player's uuid%} is not set: set {deaths::%player's uuid%} to 0 while player is online: set line 5 of player's scoreboard to "&fBalance: &e%player's balance%" #<<<<< EDITED LINE set line 4 of player's scoreboard to "&fPlayer: &b%player%" set line 3 of player's scoreboard to "&fKills: %{kills::%player's uuid%}%" set line 2 of player's scoreboard to "&fDeaths: %{deaths::%player's uuid%}%" set line 1 of player's scoreboard to "&7Server Ip: Play.MyServer.com" wait 1 second ....And now you have a scoreboard that keeps track of your kills, deaths and balance.
Want something to get added? Leave a comment and i'll add as many features in the easiest way possible for beginners!
-
1
-
ADDITIONAL
-
On 12/22/2021 at 5:53 AM, YetiTheWinner said:
I tried to install dynmap, but the website to look at your world isn't working. Is it because Minehut disabled it or because I need to enter the iPv4 adress?
Minehut doesn't have another port to allow the use of Dynmap. I don't believe this will ever come.
-
lol my server is over 2 years old
-
On 9/23/2021 at 2:41 PM, MasterBroNetwork said:
I've been here since 2016 and I love it, Unleashed made things so much better.
The most OG here in this post right now is @luison
just a bit more og than you, aug 11th 2016
-
17 hours ago, _Tarna_ said:
the mods playing with their tnt again. smh
smh mods
-
It's been almost 3 months since I have been muted on the Discord. I get unmuted in around 4 days lol (too lazy to figure out exact days).

-
this is how i would do it
on place of obsidian: if "%region at player%" contains "cpvp": set {blockplace} to obsidian if {blockplace} is not set: cancel event
this should work, however, you never provided any context on what you wanted to do
-
21 hours ago, itsKimo said:
player is holding obsidian must have a colon after it (also indent it). I edited the quote
thats a lie, only if it has an if before it it needs to have a colon, yes you can still include colons without the if, its not required
-
Great post! Very good for skript beginners.
-
15 hours ago, nolando09 said:
Can you put it in stupid for me xD sorry..
I don't really spoonfeed, you can find tutorials on how to do it online. And work off other's code that they had trouble with, that's how I learned.
-
-
10 minutes ago, BranBranTanks said:
This link brings me to https://minehut.com/support/faq
You can appeal here! https://forums.minehut.com/forum/24-player-appeals/
-
3 hours ago, baluchen said:
anal
wow so funny. dont reply to posts older than a month smh. can a mod lock this?
-
10 hours ago, nolando09 said:
So i am making a thanos gauntlet skript And well the snap wont work here is the code the snap error is in bold
on right click:
if player's tool is bone named "&dInfinityGauntlet":
open chest with 3 rows named "&5ABILITIES" to player
format gui slot 12 of player with purple dye named "&dDoubleHealth" with lore "&5Get an extra &b10&5 Health points" to run:
if {Ability::%player%} is not set:
if {doublehealth::%player%} is not set:
set {doublehealth::%player%} to "DOUBLEHEALTH"
set {Ability::%player%} to "DoubleHealth"
send "&dActivated &dAbility &a%{Ability::%player%}%"
set player's health to 10
apply regeneration 4 to player for 15 seconds
apply health boost 5 to player for 60 seconds
close player's inventory
wait 10 second
send "&dYou no longer have &aDoubleHealth&d!"
delete {Ability::%player%}
delete {doublehealth::%player%}
else:
send "&dThis is currently on cooldown!"
close player's inventory
stop
else:
send "&dYou Currently have &a%{Ability::%player%}% &dActive!"
close player's inventory
stopformat gui slot 13 of player with cyan dye named "&4&lSNAP" with lore "&5Kill half of the player's online" to run:
if {snapuse::%player%} is not set:
set {snapuse::%player%} to "SNAP"
loop all players:
add loop-player to {Killist::*}
if loop-player has permission "helper":
remove loop-player from {Killist::*}
remove player from {Killist::*}
broadcast "&dSOMEONE USED &5&lTHANOS &dSNAP"
wait 5 seconds
kill half of {Killist::*}
broadcast "&dThe world is balanced again..."
wait 30 second
delete {killist::*}
delete {snapuse::%player%}
stop
else:
send "&dThis is currently on cooldown!"
close player's inventory
stop
format gui slot 14 of player with grey dye named "&7VANISH" with lore "&dCompletly vanish from all players view for &a30 seconds" to run:
if {Ability::%player%} is not set:
if {Vanishcooldown::%player%} is not set:
set {Vanishcooldown::%player%} to "VANISH"
set {Ability::%player%} to "VANISH"
hide player from all players
send "&dYou are now &7VANISHED&d for 30 seconds!"
close player's inventory
wait 30 second
delete {Ability::%player%}
delete {Vanishcooldown::%player%}
send "&dYou are no longer &7VANISHED" to player
reveal player from all players
else:
send "&dThis is currently on cooldown!" to player
close player's inventory
else:
send "&dYou Currently have &a%{Ability::%player%}% &dActive!"
close player's inventory
format gui slot 22 of player with lime dye named "&aFLIGHT" with lore "&dYou are able to &aFLY&d until deactivation!" to run:
if {flight::%player%} is not set:
if {flightcooldown::%player%} is not set:
set {flight::%player%} to "FLIGHT"
set {flightcooldown::%player%} to true
enable flight for player
send "&dYou can now &5&lFLY&d!"
close player's inventory
wait 25 second
if {flight::%player%} is set:
send "&4&lFLIGHT&d Disabling in 5 seconds!"
wait 2 seconds
send "&4&lFLIGHT&d Disabling in 3 seconds!"
wait 1 second
send "&4&lFLIGHT&d Disabling in 2 seconds!"
wait 1 second
send "&4&lFLIGHT&d Disabling in 1 seconds!"
delete {flight::%player%}
disable flight for player
send "&dYou can no longer &aFLY &dand is now on cooldown!"
wait 30 second
delete {flightcooldown::%player%}
else:
send "&dThis is currently on cooldown!"
close player's inventory
else:
send "&aFlight&d has been disabled!"
disable flight for player
delete {flight::%player%}
close player's inventoryformat gui slot 26 of player with red wool named "&4DISABLE ABILITY" to run:
if {Ability::%player%} is set:
if {flight::%player%} is set:
send "&dDisabled ability &a%{Ability::%player%}% &dand &5%{flight::%player%}%"
delete {Ability::%player%}
reveal player from all players
disable fly for player
else:
send "&dDisabled ability &a%{Ability::%player%}%&d!"
delete {Ability::%player%}
reveal player from all players
disable fly for player
else:
send "&dYou &4Don't &dhave an ability toggled!"
What you would need to do is get the value of the variable and divide it by 2 and set the new number to another variable and kill that variable.
-
Hello!
This seems similar to what you are looking for.
https://forums.skunity.com/resources/igs-in-game-skript-editing.1174/ -
On 9/10/2021 at 11:54 PM, Melondrip said:
https://dev.bukkit.org/projects/faction-mobs this is the link
Please do not comment on posts older than 1 month. Could a mod lock this?
-
1 hour ago, jandsnadell said:
It would be great to have that but you can already with custom plugins Problem fixed
Please do not comment on posts older than 1 month. Could a mod lock this?
-
i do, i'll send it via forum dms
1 hour ago, ninjea said:does any1 know what the ceeded discord is
-
9 hours ago, GRSMGames said:
if this not working u need nexengine for goldencrates
Hello!
Please do not comment on posts older than 1 month, could a mod please lock this?




I quit Minehut
in General
Posted
and before anyone wants to call me a crybaby or smth like that. i've put up with getting muted every like second day for like 4 months now, and on top of getting blacklisted, theres no point in me staying