core.sk
on join:
set join message to "&a&lJOIN! &a%player% &7has joined!"
getkit(player)
on quit:
set quit message to "&c&lQUIT! &c%player% has left..."
function getkit(r: player):
set {_p} to {_r}'s uuid
clear {_r}'s inventory
# Swords
if {%{_p}%.swLV} is not set:
set {%{_p}%.swLV} to 1
if {%{_p}%.swLV} = 1:
give {_r} 1 wooden sword of unbreaking 10
if {%{_p}%.swLV} = 2:
give {_r} 1 stone sword of unbreaking 10
if {%{_p}%.swLV} = 3:
give {_r} 1 iron sword of unbreaking 10
# Blocks
if {%{_p}%.blLV} is not set:
set {%{_p}%.blLV} to 1
if {%{_p}%.blLV} = 1:
give {_r} 16 blue wool
if {%{_p}%.blLV} = 2:
give {_r} 32 blue wool
if {%{_p}%.blLV} = 3:
give {_r} 48 blue wool
if {%{_p}%.blLV} = 4:
give {_r} 64 blue wool
# Helmet
if {%{_p}%.hlLV} is not set:
set {%{_p}%.hlLV} to 1
if {%{_p}%.hlLV} = 1:
set {_p}'s helmet to air
if {%{_p}%.hlLV} = 2:
set {_p}'s helmet to leather helmet
if {%{_p}%.hlLV} = 3:
set {_p}'s helmet to chain helmet
if {%{_p}%.hlLV} = 4:
set {_p}'s helmet to iron helmet
if {%{_p}%.hlLV} = 5:
set {_p}'s helmet to diamond helmet
# Chestplate
if {%{_p}%.chLV} is not set:
set {%{_p}%.chLV} to 1
if {%{_p}%.chLV} = 1:
set {_p}'s chestplate to air
if {%{_p}%.chLV} = 2:
set {_p}'s chestplate to leather chestplate
if {%{_p}%.chLV} = 3:
set {_p}'s chestplate to chain chestplate
if {%{_p}%.chLV} = 4:
set {_p}'s chestplate to iron chestplate
if {%{_p}%.chLV} = 5:
set {_p}'s chestplate to diamond chestplate
# Leggings
if {%{_p}%.lgLV} is not set:
set {%{_p}%.lgLV} to 1
if {%{_p}%.lgLV} = 1:
set {_p}'s leggings to air
if {%{_p}%.lgLV} = 2:
set {_p}'s leggings to leather leggings
if {%{_p}%.lgLV} = 3:
set {_p}'s leggings to chain leggings
if {%{_p}%.lgLV} = 4:
set {_p}'s leggings to iron leggings
if {%{_p}%.lgLV} = 5:
set {_p}'s leggings to diamond leggings
on damage:
if victim is a villager:
cancel event
stop
if victim's y coordinate is above 40:
cancel event
stop
set {_hp} to victim's health
set {_hp} to {_hp} - damage
if {_hp} is less than 1:
cancel event
teleport {_r} to location at 0.5, 48, -1.5
set {_vic} to victim
respawn({_vic})
if damage cause is player:
if victim is not a villager:
broadcast "&a&lKILL! &a%attacker% &7killed &c%victim%&7!"
function respawn(r: player):
broadcast "lol2"
tpSpawn({_r})
wait 5 ticks
heal {_r}
wait 5 ticks
getkit({_r})
tpSpawn({_r})
command /spawn:
trigger:
tpSpawn(player)
function tpSpawn(p: player):
clear {_spawnLocs::*}
add location at 4.5, 49, 4.5 in world "ul_moderno" to {_spawnLocs::*}
add location at -5.5, 49, -6.5 in world "ul_moderno" to {_spawnLocs::*}
add location at -7.5, 49, 3.5 in world "ul_moderno" to {_spawnLocs::*}
add location at 5.5, 49, -7.5 in world "ul_moderno" to {_spawnLocs::*}
set {_rnd} to random element of {_spawnLocs::*}
teleport {_p} to {_rnd}
on step on black wool:
clear {_locList::*}
add location at -62.5, 11, -1.5 to {_locList::*}
add location at 0.5, 11, -62.5 to {_locList::*}
add location at 59.5, 11, 0.5 to {_locList::*}
add location at -2.5, 11, 60.5 to {_locList::*}
wait 5 ticks
set {_rnd} to random element of {_locList::*}
teleport player to {_rnd}
on hunger meter change:
cancel event
on place:
if player's gamemode is survival:
wait 30 seconds
set block at event-block's location to air
on mine:
if player's gamemode is survival:
cancel event
Public Last updated: 2020-04-24 06:53:46 PM