-
Posts
25 -
Joined
-
Last visited
Content Type
Profiles
Forums
Gallery
Blogs
Events
Store
Downloads
Posts posted by Smiley_Guy_
-
-
➜ CREATING ANY SCRIPTS
EXCEPTIONS:
➜ PUNISHMENTS
➜ LONG ASS THINGS (400 LINES MAXIMUM)
➜ GENS
-
Hi! So i was wondering how. Do i show a prefix. Do i need a plugin?
-
# json.sk by RezzedUp# ---# Version: 2.3# Requires: Skript 2.2# ---# Contributors:# - RezzedUp# - JKGamerxD## General usage:## ==> json(<recipient>, <text in json.sk format>, <OPTIONAL: whether or not to convert color codes>) :: returns nothing## This function handles everything you could ever need regarding json.# Everything is automatic with it, you just need to provide the proper json.sk notatation and someone to recieve the message!## --> example #1:# set {_to} to "@a"# set {_msg} to "&6Hello, this is a &ejson message&6!||ttp:&b&oSuper duper cool!||cmd:/msg RezzedUp You rock!!!!"# json({_to}, {_msg})## --> example #2: v [NEW]# json("%player%", "&6:D||&5Neat", false)# ^# json.sk won't convert color codes if set to false.# If no value is set, it will convert color codes by default.## ==> jsonFormat(<text in json.sk format>) :: returns text## The purpose of this function is to return the formatted peice of json for your own use.# You can set up your own /tellraw with it## --> example:# set {_toBeJson} to "I will return a json!||ttp:It's true!"# set {_jsonText} to jsonFormat({_toBeJson})# execute console command "/tellraw myUserName %{_jsonText}%"### JSON.SK NOTATION:# --> How to create json's!## <always start with normal text>||<3 letter tag>:<text>||<regular text, new json cluster># ^# "||" separates each segment.## json.sk notation follows these rules:# 1. A cluster of json is formed at each regular text segment.# 2. There may be only one hoverable and one clickable event per cluster, otherwise things could get messy.# 3. Json effects are defined by a 3 letter tag at the very start of a segment, followed directly by a colon.# 4. "||" should only ever be used to separate each json segment.## Json Effect Tags:# ttp:# --> Tooltip, hover event# cmd:# --> Run command, click event# sgt:# --> Suggest command, click event# url:# --> Open url, click event# ins:# --> Adds an "insertion", shift + click event# | For more information about the "insertion" attribute, visit# | http://www.minecraftforum.net/forums/minecraft-discussion/redstone-discussion-and/351959#insertion## Example json.sk notation:### "Hello, this is a sample json.||ttp:&bI'm a tooltip for the first cluster.||There's no tag, so I've started a new cluster.||cmd:/ping"# |_______________________________________________________________________| |_______________________________________________________|# | |# JSON Cluster #1 JSON Cluster #2### The above json.sk notation purely as their segment types:## "< regular text >||<ttp: tooltip >||< regular text, starting a new cluster >||<cmd:/command>"options:debug: falsecodes: 0|1|2|3|4|5|6|7|8|9|a|b|c|d|e|f|k|l|m|n|o|r## FUNCTION: Remove all `&` color codes.# -> Usage:# Geneal purpose function to remove color codes.# This function will not remove color codes already converted.#function removeColor(msg: text) :: text:set {_m::*} to {_msg} split at ""set {_color-codes} to "{@codes}"set {_colors::*} to {_color-codes} split at "|"set {_new} to ""loop {_m::*}:set {_char} to loop-valueset {_prev} to the last character of {_new}if {_prev} is "&":loop {_colors::*}:if loop-value-2 is {_char}:set {_skip} to trueif {_skip} is set:delete {_skip}else:set {_new} to "%{_new}%%{_char}%"return {_new}## FUNCTION: Replace all `&` color codes with valid JSON color codes.# -> Usage:# Used by json functions to convert color codes.#function jsonColorize(msg: text, default-color: text = "&r") :: text:set {_m::*} to {_msg} split at ""set {_color-codes} to "{@codes}"set {_colors::*} to {_color-codes} split at "|"set {_color} to colored {_default-color}set {_code} to the first character of {_color}set {_new} to ""set {_skip} to 0loop amount of {_m::*} times:if {_skip} is more than or equal to 1:subtract 1 from {_skip}else:set {_char} to {_m::%loop-number%}set {_next} to {_m::%loop-number + 1%}if {@debug} is true:broadcast "&a[Character Check] &r%loop-number%: &7%{_char}% &r&onext: &8%{_next}% &r[%{_color}%color&r]"if {_char} is "&" or {_code}:if {@debug} is true:broadcast "&a[Color Check] &rFOUND: &o%{_char}%%{_next}% &7&m<--&7&o is it valid?"loop {_colors::*}:if loop-value-2 is {_next}:set {_color} to "%{_color}%%{_code}%%{_next}%"if {_next} is "r":set {_color} to {_default-color}set {_new} to "%{_new}%%{_color}%"set {_skip} to 1if {_skip} is less than or equal to 0:set {_new} to "%{_new}%%{_char}%"else if {_char} is " ":set {_new} to "%{_new}% %{_color}%"else:set {_new} to "%{_new}%%{_char}%"return {_new}## FUNCTION: Replace all json-breaking characters.# -> Usage:# Used by json functions to avoid errors.# Allows usage of quotes and back-slashes in your json.#function jsonSanitize(msg: text) :: text:if {@debug} is true:broadcast "&a[Sanitize] &7&oSanitizing input..."set {_m::*} to {_msg} split at ""loop {_m::*}:if loop-value is """":set {_m::%loop-index%} to "\""" # """else if loop-value is "\":set {_m::%loop-index%} to "\\"set {_new} to join {_m::*} with ""return {_new}## FUNCTION: Generate a new /tellraw json object from a json.sk-notation string.# -> Usage:# See the top of this skript, listed under general usage.#function jsonFormat(msg: text, color: boolean = true) :: text:set {_m::*} to {_msg} split at "||"set {_current} to 1loop {_m::*}:if {_clusters::%{_current}%} is not set:set {_clusters::%{_current}%} to ""if {_clusters::%{_current}%::text} is not set:set {_clusters::%{_current}%::text} to jsonSanitize(loop-value)else:set {_tag} to the first 4 characters of loop-valueset {_value} to subtext of loop-value from characters 5 to the length of loop-valueif {_tag} is "ttp:":set {_clusters::%{_current}%::tooltip} to jsonSanitize({_value})else if {_tag} is "cmd:":set {_clusters::%{_current}%::command} to jsonSanitize({_value})else if {_tag} is "sgt:":set {_clusters::%{_current}%::suggest} to jsonSanitize({_value})else if {_tag} is "url:":if {_value} doesn't contain "http://" or "https://":set {_value} to "http://%{_value}%"set {_clusters::%{_current}%::url} to jsonSanitize({_value})else if {_tag} is "ins:":set {_clusters::%{_current}%::insertion} to jsonSanitize({_value})else:add 1 to {_current}set {_clusters::%{_current}%::text} to jsonSanitize(loop-value)set {_clusters::%{_current}%} to ""if {@debug} is true:broadcast "&a[Tag Check] &3cluster:&b%{_current}% &8(&f&o%{_tag}%&8)"loop {_clusters::*}:if {@debug} is true:broadcast "&a[Cluster Check] &7&oCluster ##%loop-index% exists."set {_i} to loop-indexset {_text} to {_clusters::%{_i}%::text}if {_color} is true:set {_text} to jsonColorize({_text})if {_json} is not set:set {_json} to "{""text"":""%{_text}%"""else:set {_json} to "%{_json}%,{""text"":""%{_text}%"""if {_clusters::%{_i}%::tooltip} is set:if {_color} is true:set {_tooltip} to jsonColorize({_clusters::%{_i}%::tooltip})else:set {_tooltip} to {_clusters::%{_i}%::tooltip}set {_json} to "%{_json}%,""hoverEvent"":{""action"": ""show_text"",""value"": ""%{_tooltip}%""}"if {_clusters::%{_i}%::insertion} is set:set {_json} to "%{_json}%,""insertion"":""%{_clusters::%{_i}%::insertion}%"",""obfuscated"":false"if {_clusters::%{_i}%::command} is set:set {_clickable} to "%{_json}%,""clickEvent"":{""action"":""run_command"",""value"":""%{_clusters::%{_i}%::command}%""}"if {_clusters::%{_i}%::suggest} is set:set {_clickable} to "%{_json}%,""clickEvent"":{""action"": ""suggest_command"",""value"": ""%{_clusters::%{_i}%::suggest}%""}"if {_clusters::%{_i}%::url} is set:set {_clickable} to "%{_json}%,""clickEvent"":{""action"": ""open_url"",""value"": ""%{_clusters::%{_i}%::url}%""}"if {_clickable} is set:set {_json} to "%{_clickable}%}"delete {_clickable}else:set {_json} to "%{_json}%}"return "{""text"":"""", ""extra"":[%{_json}%]}"## FUNCTION: Send a json message with json.sk-notation.# -> Usage:# See the top of this skript, listed under general usage.#function json(to: text, msg: text, color: boolean = true):set {_msg} to jsonFormat({_msg}, {_color})execute console command "/tellraw %{_to}% %{_msg}%"if {@debug} is true:set {_player} to {_to} parsed as offline playerif {_player} is online:send uncolored {_msg} to {_player}## FUNCTION: Broadcast a json message with json.sk-notation.#function jsonBroadcast(msg: text, color: boolean = true):json("@a", {_msg}, {_color})## COMMAND: A command to show that these json functions really work!# -> Usage:# /json recipient <text in json.sk notation># It's just a test command, not in best practice to use this instead of the json function.#command /json [<text>] [<text>]:permission: "is.op"trigger:set {_to} to arg 1set {_msg} to arg 2if arg 1 is not set:set {_to} to "%player%"if arg 2 is not set:set {_msg} to "This is a json message! &c&oClick here for no reason!||ttp:&lReally, click your mouse!||cmd:/json @a %{_to}% clicked their mouse on json..."json({_to}, {_msg})
-
On 5/15/2021 at 10:29 AM, Pocan said:
Nice warp system = )
Thx
-
On 5/23/2021 at 3:58 PM, Cerial_Killer said:
You don't have to make 2 separate commands for an alias, you can add this to your code:
command /test: aliases: /an, /alias trigger: # put stuff in here
I know it wouldn't work on my server though
-
On 5/30/2021 at 11:47 AM, herofireTY said:
i think u need addons for this right ?
Skrayfall or Skellet i think
-
Quote
command /setwarp [<text>]:
permission: setwarp
trigger:
if arg-1 is set:
set {warp::%arg-1%} to location of player
send "&7Set warp: &c%arg-1%&7 to your location!" to player
else:
send "&7Please enter a valid name for the warp!" to player
command /warp [<text>]:
trigger:
if arg-1 is set:
if {warp::*} contains "%arg-1%":
teleport player to {warp::%arg-1%}
send "&7Teleported to warp &c%arg-1%&7!" to player
else:
send "&7Warp doesn't exist!" to player
else:
send "&7Warp doesn't exist!" to player
-
On 5/2/2021 at 1:38 PM, tuberkens said:
that's just checking how fast a player clicks..? also 13cps is quite possible
By the way are you Tuberkens of Idler?
-
On 5/2/2021 at 1:38 PM, tuberkens said:
that's just checking how fast a player clicks..? also 13cps is quite possible
I know it's just standard it's changeable
-
On 5/2/2021 at 5:11 PM, SuperOrca said:
Stop reposting skripts, with different colors.
Dude im not stop hating dumbass
-
On 5/3/2021 at 11:58 AM, EmptyRooms_ said:
how is it original, someone posted another skript in here like this
It's my script... I literally have just made i-
-
On 5/2/2021 at 3:04 AM, AgentGamerPro said:
geez dont make like 10 posts in less than 2 minutes
I was just sending all my scripts
-
18 hours ago, _xXOussamaXx_ said:
Recreate Life in Skript
tf you mean? XD
-
Quote
options:
world: worldcommand invsee <offline player>:
permission: op
trigger:
if arg is online:
open inventory of arg to player
else if arg has played before:
set {_c} to (chest inventory with 4 rows named "Inventory of %arg%")
set {_inv::*} to (tag "Inventory" of file of "{@world}/playerdata/%uuid of arg%")
loop {_inv::*}:
set {_s} to (tag "Slot" of loop-value)
delete (tag "Slot" of loop-value)
set slot {_s} of {_c} to item from loop-value
open {_c} to player
else:
send "&c%arg% &chas not played before" -
Quote
command /head <offline player>:
aliases: heads
usage: /head <player>
permission: give.head
permission message: &cNo permissions
trigger:
give player head of arg -
Quote
command /dupe:
trigger:
give player player's held item -
Quote
every 1 seconds:
loop all players:
if loop-player is online:
add 1 to {playtime::%loop-player's uuid%}
command /playtime [<offline player>]:
trigger:
if arg-1 is set:
if {playtime::%arg-1's uuid%} >= 60:
if {playtime::%arg-1's uuid%} <= 3600:
set {_mins} to {playtime::%arg-1's uuid%} / 60
send "&e%arg-1%&e's playtime is: %{_mins}%&e minutes" to player
else:
if {playtime::%arg-1's uuid%} <= 86400:
set {_hours} to {playtime::%arg-1's uuid%} / 3600
send "&e%arg-1%&e's playtime is: %{_hours}%&e hours" to player
else:
set {_days} to {playtime::%arg-1's uuid%} / 86400
send "&e%arg-1%&e's playtime is: %{_days}%&e days" to player
else:
if {playtime::%player's uuid%} >= 60:
if {playtime::%player's uuid%} <= 3600:
set {_mins} to {playtime::%player's uuid%} / 60
send "&eYour playtime is: %{_mins}%&e minutes" to player
else:
if {playtime::%player's uuid%} <= 86400:
set {_hours} to {playtime::%player's uuid%} / 3600
send "&eYour playtime is: %{_hours}%&e hours" to player
else:
set {_days} to {playtime::%player's uuid%} / 86400
send "&eYour playtime is: %{_days}%&e days" to player -
Quote
on left click:
add 1 to {clicks::%player's uuid%}
every 1 second:
loop all players:
if loop-player is online:
if {clicks::%loop-player's uuid%} >= 13:
kick loop-player due to "&8| &9Detection &8|%nl%&9You were kicked because of autoclicker/killaura detection!"
clear {clicks::%loop-player's uuid%}
clear {clicks::%loop-player's uuid%} -
Quote
on skript load:
set {uptime} to now command
/uptime:
trigger:
send "&eThe server has been online for &6%time since {uptime}%." to player
-
Quote
on join:
set join message to "&8[&a+&8] &a%player%"
on quit:
set quit message to "&8[&c-&8] &c%player%"
on first join:
set join message to "&eWelcome &6%player% &eto the server!" -
Quote
options:
balancevar: %{balance::%loop-player's uuid%}%
every 3 seconds:
loop all players:
if loop-player is online:
wipe loop-player's sidebar
set name of sidebar of loop-player to "&e&lSMScripts"
set score "&fName:" in sidebar of loop-player to 13
set score "&a%loop-player%" in sidebar of loop-player to 12
set score "&r " in sidebar of loop-player to 11
set score "&fBalance:" in sidebar of loop-player to 10
set score "&c${@balancevar}" in sidebar of loop-player to 9
set score "&r " in sidebar of loop-player to 8
set score "&fTps:" in sidebar of loop-player to 7
set score "&a%the first element of tps%" in sidebar of loop-player to 6
set score "&r " in sidebar of loop-player to 5
set score "&fOnline players:" in sidebar of loop-player to 4
set score "&a%number of all players% &7/ &c%max player count%" in sidebar of loop-player to 3
set score "&r " in sidebar of loop-player to 2
set score "&6----------------------" in sidebar of loop-player to 1 -
Quote
command /bal [<offline player>] [<text>]:
trigger:
if arg-1 is set:
if arg-2 is set:
if {balance::%arg-1's uuid%} isn't set:
send "&aBalance of &4%arg-1%&a is: &c$0" to player
else:
send "&aBalance of &4%arg-1%&a is: &c$%{balance::%arg-1's uuid%}%" to player
else:
if {balance::%arg-1's uuid%} isn't set:
send "&aBalance of &4%arg-1%&a is: &c$0" to player
else:
send "&aBalance of &4%arg-1%&a is: &c$%{balance::%arg-1's uuid%}%" to player
else:
if {balance::%player's uuid%} isn't set:
send "&aBalance: &c$0" to player
else:
send "&aBalance: &c$%{balance::%player's uuid%}%" to playercommand /balance [<offline player>] [<text>]:
trigger:
if arg-1 is set:
if arg-2 is set:
if {balance::%arg-1's uuid%} isn't set:
send "&aBalance of &4%arg-1%&a is: &c$0" to player
else:
send "&aBalance of &4%arg-1%&a is: &c$%{balance::%arg-1's uuid%}%" to player
else:
if {balance::%arg-1's uuid%} isn't set:
send "&aBalance of &4%arg-1%&a is: &c$0" to player
else:
send "&aBalance of &4%arg-1%&a is: &c$%{balance::%arg-1's uuid%}%" to player
else:
if {balance::%player's uuid%} isn't set:
send "&aBalance: &c$0" to player
else:
send "&aBalance: &c$%{balance::%player's uuid%}%" to player
command /baltop [<text>]:
trigger:
loop {balance::*}:
add 1 to {_size}
if {_low.to.high.list::%loop-value%} is not set:
set {_low.to.high.list::%loop-value%} to loop-index
else:
set {_n} to 0
loop {_size} times:
set {_n} to {_n}+1
{_low.to.high.list::%loop-value-1%.%{_n}%} is not set
set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index
stop loop
wait 1 tick
set {_n} to size of {_low.to.high.list::*}
loop {_low.to.high.list::*}:
set {_high.to.low.list::%{_n}%} to loop-value
set {_n} to {_n}-1
wait 1 tick
set {_i} to 0
send "&7&m-----------&8< &6Top10 &8>&7&m-----------"
loop {_high.to.low.list::*}:
add 1 to {_topnumber}
set {_player} to "%loop-value%" parsed as offlineplayer
send "&7%{_topnumber}% - &c%{_player}% &8» &c$%{balance::%loop-value%}%"
add 1 to {_i}
if {_topnumber} > 10:
stop
send "&7&m------------------------------"
command /balancetop [<text>]:
trigger:
loop {balance::*}:
add 1 to {_size}
if {_low.to.high.list::%loop-value%} is not set:
set {_low.to.high.list::%loop-value%} to loop-index
else:
set {_n} to 0
loop {_size} times:
set {_n} to {_n}+1
{_low.to.high.list::%loop-value-1%.%{_n}%} is not set
set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index
stop loop
wait 1 tick
set {_n} to size of {_low.to.high.list::*}
loop {_low.to.high.list::*}:
set {_high.to.low.list::%{_n}%} to loop-value
set {_n} to {_n}-1
wait 1 tick
set {_i} to 0
send "&7&m-----------&8< &6Top10 &8>&7&m-----------"
loop {_high.to.low.list::*}:
add 1 to {_topnumber}
set {_player} to "%loop-value%" parsed as offlineplayer
send "&7%{_topnumber}% - &c%{_player}% &8» &c$%{balance::%loop-value%}%"
add 1 to {_i}
if {_topnumber} > 10:
stop
send "&7&m------------------------------"command /eco <text> <offline player> <integer>:
permission: economy
description: Manages the server economy.
usage: /eco <give|take|set> <player> <amount>
trigger:
if arg-1 is "set", "s" or "se":
set {balance::%arg-2's uuid%} to arg-3
send "&aYour balance was set to $%arg-3%&a." to arg-2
send "&aYou set &4%arg-2%&a's balance to $%arg-3%&a." to player
if arg-1 is "g", "gi", "giv" or "give":
add arg-3 to {balance::%arg-2's uuid%}
send "&a$%arg-3% &ahas been added to your account." to arg-2
send "&a$%arg-3%&a added to &4%arg-2%&a's account. New balance: $%{balance::%arg-2's uuid%}%" to player
if arg-1 is "t", "ta", "tak" or "take":
remove arg-3 from {balance::%arg-2's uuid%}
send "&e$%arg-3%&a has been taken from your account." to arg-2
send "&e$%arg-3%&a taken from %arg-2%&a's &aaccount. &aNew balance: &e%{balance::%arg-2's uuid%}%" to playercommand /economy <text> <offline player> <integer>:
permission: economy
description: Manages the server economy.
usage: /eco <give|take|set> <player> <amount>
trigger:
if arg-1 is "set", "s" or "se":
set {balance::%arg-2's uuid%} to arg-3
send "&aYour balance was set to $%arg-3%&a." to arg-2
send "&aYou set &4%arg-2%&a's balance to $%arg-3%&a." to player
if arg-1 is "g", "gi", "giv" or "give":
add arg-3 to {balance::%arg-2's uuid%}
send "&a$%arg-3% &ahas been added to your account." to arg-2
send "&a$%arg-3%&a added to &4%arg-2%&a's account. New balance: $%{balance::%arg-2's uuid%}%" to player
if arg-1 is "t", "ta", "tak" or "take":
remove arg-3 from {balance::%arg-2's uuid%}
send "&e$%arg-3%&a has been taken from your account." to arg-2
send "&e$%arg-3%&a taken from %arg-2%&a's &aaccount. &aNew balance: &e%{balance::%arg-2's uuid%}%" to playercommand /pay <offline player> <integer>:
description: Pays another player from your balance.
usage: /pay <player> <amount>
trigger:
if arg-2 >= 1:
if {balance::%player's uuid%} >= arg-2:
send "&a$%arg-2% &ahas been sent to &4%arg-1%&a." to player
send "&a$%arg-2% &6has been received from &4%arg-1%&6." to arg-1
remove arg-2 from {balance::%player's uuid%}
add arg-2 to {balance::%arg-1's uuid%}
else:
send "&cInsufficient funds!" to player
else:
send "&cYour payment can't be under $1" to player -
Make sure to make a world with multiverse named Skyblock
Best way to make one is with voidGenerator plugin
Quotecommand /is [<text>]:
aliases: /island
trigger:
if arg-1 isn't set:
if {island.owned::%player's uuid%} isn't set:
console command "/mv clone Skyblock sb%player%"
send "&6Creating Your Island!" to player
console command "/mv load sb%player%"
wait 2 seconds
console command "/mvtp %player% sb%player%"
set {island.owned::%player's uuid%} to true
else:
console command "/mvtp %player% sb%player%"
else:
if arg-1 is "delete", "d", "de", "del", "dele", "delet" or "delete":
if {island.owned::%player's uuid%} is true:
send "&6Deleting Your Island!" to player
console command "/mvdelete sb%player%"
console command "/mvconfirm"
clear {island.owned::%player's uuid%}
else:
send "&6You don't own an island!" to player
else:
if arg-1 is "create", "c", "cr", "cre", "crea", "creat" or "create":
if {island.owned::%player's uuid%} isn't set:
console command "/mv clone Skyblock sb%player%"
send "&6Creating Your Island!" to player
console command "/mv load sb%player%"
wait 2 seconds
console command "/mvtp %player% sb%player%"
set {island.owned::%player's uuid%} to true
else:
send "&6You already have an island!" to player
else:
if arg-1 is "help", "h", "he" or "hel":
open virtual chest with 1 row named "&6Help" to player
format gui slot 0,1,2,3,4,5,6,7,8,9 of player with red stained glass pane to run:
cancel event
format gui slot 0 of player with book named "&6/is create" with lore "&cCreates a new island!" and "&eClick to execute this command!" to run:
make player execute "/is create"
cancel event
format gui slot 1 of player with book named "&6/is delete" with lore "&cDeletes your current island!" and "&eClick to execute this command!" to run:
make player execute "/is delete"
cancel event -
I will try my best to make any scripts needed!
I'm making scripts :D
in Script Releases
Posted
Yessir