-
Posts
438 -
Joined
-
Last visited
-
Days Won
5
Content Type
Profiles
Forums
Gallery
Blogs
Events
Store
Downloads
Posts posted by StarBunnie
-
-
2 hours ago, DaanSkuhh070 said:
Hey, for a while now, I have been wanting to set up a parcour in my server with a timer system so that everyone who does the parcour can record their time and see who is the fastest. Is there a possibility that this can be made with a script? Answering would be great

It's actually quite easy to make just save the "start"-pressure plate and the "end"-pressure plate as a location and when the player steps on the "start"-pressure plate set a player specific variable to now and upon stepping on the "end"-pressure plate set a variable to the difference between the previously set variable and now.
-
-
1 minute ago, Razaire said:
oh crap i didnt read right it said 4 weeks but now its 3 weeks ok but this should be in Skript Discussions
It should not it's a "Request Skripts" post so every skript posted here is done and released
-
Just now, Razaire said:
PLEASE DO NOT NECROPOST A TOPIC OVER 1 MONTH
PLEASE DON'T POST TOPICS IN THE WRONG SECTION [REQUESTING MOD]
This is neither a necropost nor the wrong topic tho..
-
1 hour ago, Adamwh1 said:
I was on one of my servers, and went to the "ad rewards" villager to trade. Imagine my shock when i saw that i couldn't trade! It seems that Minehut isnt allowing ad rewards anymore, but i dont know why. Can someone help?
It was against the rules from the start minehut doesn't like adrewards for several reasons. It's new tho that they are acting on it but that sounds more like a server-side bug tbh
-
1 minute ago, champepicgamerman said:
aw is that the only way ._.
if player's location is within {_loc1} and {_loc2}:
-
1
-
-
22 hours ago, TheCubPlaysWasTake said:
Hello! So basicly I've some list variables which store some values and they work but the problem is that when I restart my server they fail to load. I checked the logs for this and the error that I get is this:
"
[16:43:37] [Server thread/ERROR]: #!#! Unable to load (all) variables:
[16:43:37] [Server thread/ERROR]: #!#! 645 variables could not be loaded!
[16:43:37] [Server thread/ERROR]: #!#! Affected variables: (then it displays the variables in the list variables)"
So then when I check the values that are stored in these list variables, there are no values stored in them.
Anyone know what's wrong?Are you storing locations by any chance?
-
18 minutes ago, Pocan said:
Merchant puts your items for sale you can arrange these items for sale as you wish through your own store.
This skript is like a special shop like a only items determined by server administrators can be purchase and also stocks of items available these stocks make by server players
Dependencies:
• Skript
• Skript-reflect
• Skript-yaml
• TuSKe
Install:
■ Put 'Skript.jar', 'Skript-reflect.jar', 'Skript-yaml.jar' and 'TuSKe.jar', to "plugins/"
■ Reload server.
■ Put 'merchant.sk file ' into "plugins/Skript/scripts"
■ Now execute command '/sk reload merchant.sk'
■ Basic installation complete. (The others are easily adjusted through the yaml file.)■ Special purchase guis.
■ Register unlimited items and create categories to Merchant.
■ Easy item register.
■ Easy item add.
■ Easy stockadd.
■ Easy setup.
■ Custom stores
■ Fast and optimized.
■ Yaml supportMERCHANT API
PurchaseAPICode (Text):function MerchantAPIPurchase(total : number, amount : number, d : object, item : item, uuid : text, p : player):
# If you know SkriptLang you can use this API
# {_total} -> Total price of purchase
# {_amount} -> The amount of item the player wants to buy
# {_d} -> The item of player wants to buy not parsed
# {_item} -> The item of player wants to buy with parsed
# {_uuid} -> Uuid of seller.
# {_p} -> Event-player
#broadcast "&e%{_p}% &7, is purchased &c{_amount} &7of &c{_item} &7for &c${_total} &7from merchant."ItemAddAPI
Code (Text):function MerchantAPIItemAdd(price : integer, amount : number, item : item, p : player):
# If you know SkriptLang you can use this API
# {_price} -> Price of item
# {_amount} -> The amount of item
# {_item} -> The item
# {_p} -> Event-player
#set {_counter} to {_price} * {_amount}
#broadcast "&e%{_p}% &7, is put &c{_amount} &7of &c{_item} &7to merchant for &c${_counter}"• /merchant add <1/Per Price> <all>
• /merchant stockadd <all>
• /merchant admin create category <Category-ID> <Category-Name-Colored>"
• /merchant admin create shop <Category-ID> <Category-Page> <Shop-Name> <Shop-Name-Colored>
Permissions
merchant.* -> All permissions.
merchant.usage -> You need this perm for usage /merchant admin.
merchant.create.shop -> Create shop.
merchant.create.category -> Create category.
merchant.reload -> Reload files.
merchant.help -> For execute command /merchant helpDoesn't seem like skript-yaml is on Minehut just a heads up not sure how much that breaks.
-
1
-
1
-
-
7 hours ago, Darth1013 said:
hi! i have put my credits to the wrong server and havnt been able to acsess it nore able to get my credits back. not even another person could acsess this server (TeamFMiner) i mistook it for my server i am working on (TeamFPVP) so can i get the credits back? cause i spent £6 on this product, hope to get a responce. cya!
Thanks,
Darth84/TeamF (mc ign)I think you should contact support for this one. Here's a link: https://minehut.com/support/form
Good luck!
-
1 hour ago, Tewca said:
I need help with a skript that if a player clicks a message, it puts the set string into the chat area that you like type in. If you could help I would be grateful
send formatted "<sgt:Text you want to suggest>Text to display in chat<reset>"
-
1 hour ago, nolando09 said:
Uh use this one instead of the other function
function convHex(t: text) :: text: if {_t} contains "&##": set {_t2::*} to {_t} split at "&##" set {_t} to "" delete {_t2::1} loop {_t2::*}: set {_word} to loop-value set {_char} to first 6 characters of {_word} replace {_char} in {_word} with "" set {_t} to "%{_t}%<##%{_char}%>%{_word}%" return {_t}every tick: loop all players: toggle loop-player's scoreboard to true set title of loop-player's scoreboard to "&4&lVelvetSurv" set line 11 of loop-player's scoreboard to "&b" set line 10 of loop-player's scoreboard to "&4&lRank&c:" set {_pref} to formatted convHex(loop-player's prefix) set line 9 of loop-player's scoreboard to " &4&lRank&c: %{_pref}%" set line 8 of loop-player's scoreboard to " &4&lPing&c: &c%loop-player's ping%ms" set line 6 of loop-player's scoreboard to "&b" set line 5 of loop-player's scoreboard to "&b&lInformations" set line 4 of loop-player's scoreboard to " &4&lTPS&c: &c%rounded 1st element of tps%" set line 3 of loop-player's scoreboard to " &4&lOnline&c: &c%number of all players%&8/&c%max players%" set line 2 of loop-player's scoreboard to "&b" set line 1 of loop-player's scoreboard to "&4&lVelvetsurv.minehut.gg"-
1
-
-
1 minute ago, nolando09 said:
Ah now I understand the issue lol
every tick: loop all players: toggle loop-player's scoreboard to true set title of loop-player's scoreboard to "&4&lVelvetSurv" set line 11 of loop-player's scoreboard to "&b" set line 10 of loop-player's scoreboard to "&4&lRank&c:" set {_pref} to loop-player's prefix if {_pref} contains "&##": set {_pref} to formatted convHex(loop-player's prefix) set line 9 of loop-player's scoreboard to " &4&lRank&c: %{_pref}%" set line 8 of loop-player's scoreboard to " &4&lPing&c: &c%loop-player's ping%ms" set line 6 of loop-player's scoreboard to "&b" set line 5 of loop-player's scoreboard to "&b&lInformations" set line 4 of loop-player's scoreboard to " &4&lTPS&c: &c%rounded 1st element of tps%" set line 3 of loop-player's scoreboard to " &4&lOnline&c: &c%number of all players%&8/&c%max players%" set line 2 of loop-player's scoreboard to "&b" set line 1 of loop-player's scoreboard to "&4&lVelvetsurv.minehut.gg"Give that a shot
-
2 minutes ago, nolando09 said:
IM sorry it works but now anything not a hex code wont worrrk xD just tell me if you don't want to idm, I don't wanna waste ur time!
What does it look like it works fine on my server
-
9 minutes ago, nolando09 said:
Im so sorry im very dumb but do i leave (player's prefix) in?
function convHex(t: text) :: text: set {_t2::*} to {_t} split at "&##" set {_t} to "" delete {_t2::1} loop {_t2::*}: set {_word} to loop-value set {_char} to first 6 characters of {_word} replace {_char} in {_word} with "" set {_t} to "%{_t}%<##%{_char}%>%{_word}%" return {_t} on join: clear player's scoreboard erase player's sidebar on script load: loop all players: clear loop-player's scoreboard erase loop-player's sidebar every tick: loop all players: toggle loop-player's scoreboard to true set title of loop-player's scoreboard to "&4&lVelvetSurv" set line 11 of loop-player's scoreboard to "&b" set line 10 of loop-player's scoreboard to "&4&lRank&c:" set {_pref} to formatted convHex(loop-player's prefix) set line 9 of loop-player's scoreboard to " &4&lRank&c: %{_pref}%" set line 8 of loop-player's scoreboard to " &4&lPing&c: &c%loop-player's ping%ms" set line 6 of loop-player's scoreboard to "&b" set line 5 of loop-player's scoreboard to "&b&lInformations" set line 4 of loop-player's scoreboard to " &4&lTPS&c: &c%rounded 1st element of tps%" set line 3 of loop-player's scoreboard to " &4&lOnline&c: &c%number of all players%&8/&c%max players%" set line 2 of loop-player's scoreboard to "&b" set line 1 of loop-player's scoreboard to "&4&lVelvetsurv.minehut.gg"Just use this it should work
-
1 minute ago, nolando09 said:
Like this xD??
function convHex(t: text) :: text:
set {_t2::*} to {_t} split at "&##"
set {_t} to ""
delete {_t2::1}
loop {_t2::*}:
set {_word} to loop-value
set {_char} to first 6 characters of {_word}
replace {_char} in {_word} with ""
set {_t} to "%{_t}%<##%{_char}%>%{_word}%"
return {_t}
set {_pref} to formatted convHex(player's prefix)on join:
clear player's scoreboard
erase player's sidebaron script load:
loop all players:
clear loop-player's scoreboard
erase loop-player's sidebarevery tick:
loop all players:
toggle loop-player's scoreboard to true
set title of loop-player's scoreboard to "&4&lVelvetSurv"
set line 11 of loop-player's scoreboard to "&b"
set line 10 of loop-player's scoreboard to "&4&lRank&c:"
set line 9 of loop-player's scoreboard to " &4&lRank&c: %{_pref}%"
set line 8 of loop-player's scoreboard to " &4&lPing&c: &c%loop-player's ping%ms"
set line 6 of loop-player's scoreboard to "&b"
set line 5 of loop-player's scoreboard to "&b&lInformations"
set line 4 of loop-player's scoreboard to " &4&lTPS&c: &c%rounded 1st element of tps%"
set line 3 of loop-player's scoreboard to " &4&lOnline&c: &c%number of all players%&8/&c%max players%"
set line 2 of loop-player's scoreboard to "&b"
set line 1 of loop-player's scoreboard to "&4&lVelvetsurv.minehut.gg"
That line was just an example on how to use it you can leave that out just write it below into your actual scoreboard skript but remember to use loop-player
-
14 minutes ago, nolando09 said:
And here is what i did
on join:
clear player's scoreboard
erase player's sidebaron script load:
loop all players:
clear loop-player's scoreboard
erase loop-player's sidebarevery tick:
loop all players:
toggle loop-player's scoreboard to true
set title of loop-player's scoreboard to "&4&lVelvetSurv"
set line 11 of loop-player's scoreboard to "&b"
set line 10 of loop-player's scoreboard to "&4&lRank&c:"
function convHex(t: text) :: text:
set {_t2::*} to {_t} split at "&##"
set {_t} to ""
delete {_t2::1}
loop {_t2::*}:
set {_word} to loop-value
set {_char} to first 6 characters of {_word}
replace {_char} in {_word} with ""
set {_t} to "%{_t}%<##%{_char}%>%{_word}%"
return {_t}
set {_pref} to formatted convHex(player's prefix)
set line 9 of loop-player's scoreboard to " &4&lRank&c: %{_pref}%"
set line 8 of loop-player's scoreboard to " &4&lPing&c: &c%loop-player's ping%ms"
set line 6 of loop-player's scoreboard to "&b"
set line 5 of loop-player's scoreboard to "&b&lInformations"
set line 4 of loop-player's scoreboard to " &4&lTPS&c: &c%rounded 1st element of tps%"
set line 3 of loop-player's scoreboard to " &4&lOnline&c: &c%number of all players%&8/&c%max players%"
set line 2 of loop-player's scoreboard to "&b"
set line 1 of loop-player's scoreboard to "&4&lVelvetsurv.minehut.gg"You can't just add the function into the scoreboard code xD Let it stand alone there are no indent errors the only line you need to use in your scoreboard itself is
set {_pref} to formatted convHex(loop-player's prefix)A function stands alone so just copy it above you're scoreboard skript
-
32 minutes ago, nolando09 said:
Alright slapped something together
function convHex(t: text) :: text: set {_t2::*} to {_t} split at "&##" set {_t} to "" delete {_t2::1} loop {_t2::*}: set {_word} to loop-value set {_char} to first 6 characters of {_word} replace {_char} in {_word} with "" set {_t} to "%{_t}%<##%{_char}%>%{_word}%" return {_t} set {_pref} to formatted convHex(player's prefix) -
Just now, nolando09 said:
But if i use <##123456> it doesnt work in luckperms
hmm I have an idea we already set {_pref} to player's prefix so maybe we can try something like the following
set {_pref} to player's prefix replace "&" in {_pref} with "##" set {_pref} to formatted {_pref} -
19 hours ago, TacticalModz said:
[DiscordSRV - Initialization/ERROR]: [DiscordSRV] No bot token has been set in the config; a bot token is required to connect to Discord.
I found this line in your logs it is quite possible that it disables itself to save on server resources when the token is not set.
-
1 hour ago, nolando09 said:
Im just desperate to get hex codes to work XD
I just saw in the screen that you're using hexcodes that won't work with skript. Skript only reads hexcodes like this
<##123456>
-
9 hours ago, Slinky5654 said:
I have been try to breed villagers for a while but I can't get them to breed is the a setting I need to fix or is it a bug?
I think for them to breed mobGriefing needs to be on.
-
27 minutes ago, nolando09 said:
Also for context the rank wont show at all hex codes or not
you wrote player you need to change it to loop-player
-
2 hours ago, nolando09 said:
so i got this far but hex codes still dont work
on join:
clear player's scoreboard
erase player's sidebaron script load:
loop all players:
clear loop-player's scoreboard
erase loop-player's sidebarevery tick:
loop all players:
toggle loop-player's scoreboard to true
set title of loop-player's scoreboard to "&4&lVelvetSurv"
set line 11 of loop-player's scoreboard to "&b"
set line 10 of loop-player's scoreboard to "&4&lRank&c:"
set line 9 of loop-player's scoreboard to " &4&lRank&c: &f%loop-player's prefix%"
set line 8 of loop-player's scoreboard to " &4&lPing&c: &c%loop-player's ping%ms"
set line 6 of loop-player's scoreboard to "&b"
set line 5 of loop-player's scoreboard to "&b&lInformations"
set line 4 of loop-player's scoreboard to " &4&lTPS&c: &c%rounded 1st element of tps%"
set line 3 of loop-player's scoreboard to " &4&lOnline&c: &c%number of all players%&8/&c%max players%"
set line 2 of loop-player's scoreboard to "&b"
set line 1 of loop-player's scoreboard to "&4&lVelvetsurv.minehut.gg"Sorry bout the wait issue my bad. To use hex codes that are in like the prefix you might need to format it
%formatted player's prefix% set {_pref} to formatted player's prefixgive one of those a shot
-
22 minutes ago, nolando09 said:
The issue is idk how to use skbees
on join: while player is online: set title of player's scoreboard to "&5%player%" set line 1 of player's scoreboard to "Text" toggle scoreboard of player on


![[IMG]](https://proxy.spigotmc.org/166a7a9aca1a525500efb1b63aa5fafe9101ab16?url=https%3A%2F%2Fmedia.discordapp.net%2Fattachments%2F840921337815760917%2F868530964329005136%2Funknown.png)
![[IMG]](https://proxy.spigotmc.org/4151a795cad325cedfc735c373c226c7e3566994?url=https%3A%2F%2Fmedia.discordapp.net%2Fattachments%2F840921337815760917%2F868531199591710745%2Funknown.png)
![[IMG]](https://proxy.spigotmc.org/51b24587b137f77e5f91fa1cc17903ceff14fb61?url=https%3A%2F%2Fmedia.discordapp.net%2Fattachments%2F840921337815760917%2F868839291680346142%2Funknown.png)
![[IMG]](https://proxy.spigotmc.org/5d86cfb7be354522192918424cf591e61eade623?url=https%3A%2F%2Fmedia.discordapp.net%2Fattachments%2F840921337815760917%2F868839516801228800%2Funknown.png)
![[IMG]](https://proxy.spigotmc.org/3a256a3c5d820914a2e66e0e733b4d15ae795790?url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FwFGpqapKxWcTwJF6mx%2Fgiphy.gif)
![[IMG]](https://proxy.spigotmc.org/c3800d5cae2ead2f92413dd13fa4fa25278b134c?url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FZJqqCnZMfZg8i6fCpI%2Fgiphy.gif)
![[IMG]](https://proxy.spigotmc.org/f454084a8b809ef1818c9631562ab70f47295b48?url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FTsIEs15ssVjp64b557%2Fgiphy.gif)
![[IMG]](https://proxy.spigotmc.org/466f430548811a82b44a60ac1798df61e0d39ba2?url=https%3A%2F%2Fmedia.discordapp.net%2Fattachments%2F840921337815760917%2F868839947447189594%2Funknown.png)
![[IMG]](https://proxy.spigotmc.org/07ca46410447802bdd5c7dbaac9a8c9f1693f1fc?url=https%3A%2F%2Fmedia.discordapp.net%2Fattachments%2F861646660395073539%2F868846142224482374%2F88b1460b4d4a442539348e7dea212e5939d996c5.png)


Need help with running a variable
in Discussion
Posted
That is not how skript works. A skript needs an event to trigger the following code.
For example an event is stuff like:
These are events that tell skript one the code below is supposed to run. So in order to use the if you have there you need a trigger since you already have an on break: event because you add xp when breaking an ore just add it to that.