0% found this document useful (0 votes)
11 views2 pages

Skcode

Uploaded by

weal0286
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views2 pages

Skcode

Uploaded by

weal0286
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

on load:

delete {spawnteleporting::*}
delete {pos::*}

on tab complete of "/spawn" and "/lobby" and "/hub":


set tab completions for position 1 to ""

command /spawn:
aliases: /lobby, /hub
trigger:
if {spawn} is not set:
send "&cSpawn location is not set!"
stop
if {spawnteleporting::%player's uuid%} is set:
stop
if {spawnteleporting::%player's uuid%} is not set:
set {spawnteleporting::%player's uuid%} to true
set {pos::%player's uuid%} to player's location
send "<##A7A7A7>You will be teleported in <##37BFF8>5
<##A7A7A7>seconds"
send action bar "<##A7A7A7>You will be teleported in <##37BFF8>5
<##A7A7A7>seconds" to player
wait 1 second
if {spawnteleporting::%player's uuid%} is set:
send "<##A7A7A7>You will be teleported in <##37BFF8>4
<##A7A7A7>seconds"
send action bar "<##A7A7A7>You will be teleported in <##37BFF8>4
<##A7A7A7>seconds" to player
wait 1 second
if {spawnteleporting::%player's uuid%} is set:
send "<##A7A7A7>You will be teleported in <##37BFF8>3
<##A7A7A7>seconds"
send action bar "<##A7A7A7>You will be teleported in <##37BFF8>3
<##A7A7A7>seconds" to player
wait 1 second
if {spawnteleporting::%player's uuid%} is set:
send "<##A7A7A7>You will be teleported in <##37BFF8>2
<##A7A7A7>seconds"
send action bar "<##A7A7A7>You will be teleported in <##37BFF8>2
<##A7A7A7>seconds" to player
wait 1 second
if {spawnteleporting::%player's uuid%} is set:
send "<##A7A7A7>You will be teleported in <##37BFF8>1
<##A7A7A7>seconds"
send action bar "<##A7A7A7>You will be teleported in <##37BFF8>1
<##A7A7A7>seconds" to player
wait 1 second
if {spawnteleporting::%player's uuid%} is set:
send action bar "<##A7A7A7>You teleported to <##37BFF8>ꜱᴘᴀᴡɴ" to
player
send "<##A7A7A7>You teleported to <##37BFF8>ꜱᴘᴀᴡɴ"
delete {spawnteleporting::%player's uuid%}
delete {pos::%player's uuid%}
teleport player to {spawn}
play sound "[Link]" to player

command /setspawn:
permission: [Link]
permission message: &cYou don't have permission to execute this command!
trigger:
set {spawn} to location of player
send "&aYou have successfully set the spawn location at your location!"

command /delspawn:
permission: [Link]
permission message: &cYou don't have permission to execute this command!
trigger:
delete {spawn}
send "&aYou have successfully unset the spawn location!"

on first join:
teleport player to {spawn}
set join message to ""
wait 1 tick
teleport player to {spawn}
send "<##37BFF8>ᴡᴇʟᴄᴏᴍᴇ ᴛᴏ ᴇxᴀᴍᴘʟᴇꜱᴍᴘ"
send "<##37BFF8>ᴊᴏɪɴ ᴛʜᴇ ᴇxᴀᴍᴘʟᴇꜱᴍᴘ ᴅɪꜱᴄᴏʀᴅ ᴄᴏᴍᴍᴜɴɪᴛʏ!"
send "<##37BFF8>● <open
url:[Link]
give 16 cooked beef to player
give stone sword to player
give chainmail chestplate to player
give chainmail leggings to player
give chainmail boots to player
give chainmail helmet to player
make console execute command "/ibooks open updates %player's name%"

on join:
set join message to ""
if {pos::%player's uuid%} is set:
delete {pos::%player's uuid%}
if {spawnteleporting::%player's uuid%} is set:
delete {spawnteleporting::%player's uuid%}
wait 1 tick
if player's world is "spawn":
teleport player to {spawn}

on quit:
set leave message to ""
if {pos::%player's uuid%} is set:
delete {pos::%player's uuid%}
if {spawnteleporting::%player's uuid%} is set:
delete {spawnteleporting::%player's uuid%}

on respawn:
wait 1 tick
teleport player to {spawn}

on player move:
if {spawnteleporting::%player's uuid%} is set:
if distance between {pos::%player's uuid%} and player's location is
bigger than 0.5:
delete {spawnteleporting::%player's uuid%}
delete {pos::%player's uuid%}
send "<##FB5454>Teleport cancelled because you moved."
send action bar "<##FB5454>Teleport cancelled because you moved."
to player

You might also like