Skript Minecraft 1.16 Leveling System
Skript Minecraft 1.16 Leveling System
16
command /test:
permission: test.dev
trigger:
set the maximum health of player to 5
#----------------------------------------------------------------------------------
------------
options:
player-level: Your level
a-player-level: %arg 1%'s level: &6%arg 1's level%
no-perm: &eNo Perm
LevelC-enable: &eLevel Counter enable
LevelC-disable: &eLevel Counter disable
level-set: &7Level edited to &e%arg 3%
level-add: &e%arg 3%&7 Level added
level-remove: &e%arg 3%&7 Level Removed
level-edit-perm:level.use
level-perm:level.use
level-counter-perm:level.use
on join:
if player's level is 0:
set the maximum health of player to 3
set the player's walk speed to 0.175
set player's level to 1
set {jump+::%player's uuid%} to 0
set {query.speed.%player's uuid%} to player's walk speed
set {query.jump+.%player's uuid%} to {jump+::%player's uuid%}
on level change:
if player's level is 0:
set the maximum health of player to 3
set the player's walk speed to 0.178
set {jump+::%player's uuid%} to 0
set {query.speed.%player's uuid%} to player's walk speed
set {query.jump+.%player's uuid%} to {jump+::%player's uuid%}
else if player's level is 5:
send "&6You Stats Changed !" to player
send "&a&lStage: &32" to player
send "&dHealth: 8 ♥↑ " to player
send "&bSpeed: +0.02 ↑ " to player
send "&bJump Speed: N/A"
send "&b--------------&aNext : Require &310
&aexperience&b--------------" to player
play sound "entity.player.levelup" with volume 1 and pitch 1 at player
set the maximum health of player to 4
set the player's walk speed to 0.18
set {jump+::%player's uuid%} to 0
set {query.speed.%player's uuid%} to player's walk speed
set {query.jump+.%player's uuid%} to {jump+::%player's uuid%}
else if player's level is 10:
send "&6You Stats Changed !" to player
send "&a&lStage: &33" to player
send "&dHealth: 10 ♥ ↑ " to player
send "&bSpeed: +0.04 ↑ " to player
send "&bJump Speed: N/A"
send "&b--------------&aNext : Require &316
&aexperience&b--------------" to player
play sound "entity.player.levelup" with volume 1 and pitch 1 at player
set the maximum health of player to 5
set the player's walk speed to 0.183
set {jump+::%player's uuid%} to 0
set {query.speed.%player's uuid%} to player's walk speed
set {query.jump+.%player's uuid%} to {jump+::%player's uuid%}
else if player's level is 16:
send "&6You Stats Changed !" to player
send "&a&lStage: &34" to player
send "&dHealth: 12 ♥ ↑ " to player
send "&bSpeed: +0.06 ↑ " to player
send "&bJump Speed: N/A"
send "&b--------------&aNext : Require &324
&aexperience&b--------------" to player
play sound "entity.player.levelup" with volume 1 and pitch 1 at player
set the maximum health of player to 6
set the player's walk speed to 0.185
set {jump+::%player's uuid%} to 0
set {query.speed.%player's uuid%} to player's walk speed
set {query.jump+.%player's uuid%} to {jump+::%player's uuid%}
else if player's level is 24:
send "&6You Stats Changed !" to player
send "&a&lStage: &35" to player
send "&dHealth: 14 ♥ ↑ " to player
send "&bSpeed: +0.08 ↑ " to player
send "&bJump Speed: N/A"
send "&b--------------&aNext : Require &330
&aexperience&b--------------" to player
play sound "entity.player.levelup" with volume 1 and pitch 1 at player
set the maximum health of player to 7
set the player's walk speed to 0.189
set {jump+::%player's uuid%} to 0
set {query.speed.%player's uuid%} to player's walk speed
set {query.jump+.%player's uuid%} to {jump+::%player's uuid%}
else if player's level is 30:
send "&6You Stats Changed !" to player
send "&a&lStage: &36" to player
send "&dHealth: 16 ♥ ↑ " to player
send "&bSpeed: +0.1 ↑ " to player
send "&bJump Speed: N/A"
send "&cAttack Melee +1 ↑ " to player
send "&b--------------&aNext : Require &338
&aexperience&b--------------" to player
play sound "entity.player.levelup" with volume 1 and pitch 1 at player
set the maximum health of player to 8
set the player's walk speed to 0.189
set {jump+::%player's uuid%} to 0
set {query.speed.%player's uuid%} to player's walk speed
set {query.jump+.%player's uuid%} to {jump+::%player's uuid%}
else if player's level is 38:
send "&6You Stats Changed !" to player
send "&a&lStage: &37" to player
send "&dHealth: 18 ♥ ↑ " to player
send "&bSpeed: +0.12 ↑ " to player
send "&bJump Speed: N/A"
send "&cAttack Melee +1.2 ↑ " to player
send "&b--------------&aNext : Require &342
&aexperience&b--------------" to player
play sound "entity.player.levelup" with volume 1 and pitch 1 at player
set the maximum health of player to 9
set the player's walk speed to 0.190
set {jump+::%player's uuid%} to 0
set {query.speed.%player's uuid%} to player's walk speed
set {query.jump+.%player's uuid%} to {jump+::%player's uuid%}
else if player's level is 42:
send "&6You Stats Changed !" to player
send "&a&lStage: &38" to player
send "&dHealth: 18 ♥ ↑ " to player
send "&bSpeed: +0.14 ↑ " to player
send "&bJump Speed: N/A"
send "&cAttack Melee +1.5 ↑ " to player
send "&b--------------&aNext : Require &346
&aexperience&b--------------" to player
play sound "entity.player.levelup" with volume 1 and pitch 1 at player
set the maximum health of player to 9
set the player's walk speed to 0.191
set {jump+::%player's uuid%} to 0
set {query.speed.%player's uuid%} to player's walk speed
set {query.jump+.%player's uuid%} to {jump+::%player's uuid%}
else if player's level is 46:
send "&6You Stats Changed !" to player
send "&a&lStage: &39" to player
send "&dHealth: 19 ♥ ↑ " to player
send "&bSpeed: +0.15 ↑ " to player
send "&bJump Speed: N/A"
send "&cAttack Melee +1.8 ↑ " to player
send "&b--------------&aNext : Require &350
&aexperience&b--------------" to player
play sound "entity.player.levelup" with volume 1 and pitch 1 at player
set the maximum health of player to 9.5
set the player's walk speed to 0.191
set {jump+::%player's uuid%} to 0
set {query.speed.%player's uuid%} to player's walk speed
set {query.jump+.%player's uuid%} to {jump+::%player's uuid%}
else if player's level is 50:
send "&6You Stats Changed !" to player
send "&a&lStage: &310" to player
send "&dHealth: 20 ♥ ↑ " to player
send "&bSpeed: +0.16 ↑ " to player
send "&bJump Speed: N/A"
send "&cAttack Melee + 2 ↑ " to player
send "&b--------------&aNext : Require &360
&aexperience&b--------------" to player
play sound "entity.player.levelup" with volume 1 and pitch 1 at player
set the maximum health of player to 10
set the player's walk speed to 0.192
set {jump+::%player's uuid%} to 0
set {query.speed.%player's uuid%} to player's walk speed
set {query.jump+.%player's uuid%} to {jump+::%player's uuid%}
else if player's level is 60:
send "&6You Stats Changed !" to player
send "&a&lStage: &311" to player
send "&dHealth: 24 ♥ ↑ " to player
send "&bSpeed: +0.17 ↑ " to player
send "&bJump Speed: N/A"
send "&cAttack Melee + 2.2 ↑ " to player
send "&b--------------&aNext : Require &365
&aexperience&b--------------" to player
play sound "entity.player.levelup" with volume 1 and pitch 1 at player
set the maximum health of player to 12
set the player's walk speed to 0.192
set {jump+::%player's uuid%} to 0
set {query.speed.%player's uuid%} to player's walk speed
set {query.jump+.%player's uuid%} to {jump+::%player's uuid%}
else if player's level is 65:
send "&6You Stats Changed !" to player
send "&a&lStage: &312" to player
send "&dHealth: 28 ♥ ↑ " to player
send "&bSpeed: +0.18 ↑ " to player
send "&bJump Speed: N/A"
send "&cAttack Melee + 2.2 ↑ " to player
send "&b--------------&aNext : Require &370
&aexperience&b--------------" to player
play sound "entity.player.levelup" with volume 1 and pitch 1 at player
set the maximum health of player to 14
set the player's walk speed to 0.193
set {jump+::%player's uuid%} to 0
set {query.speed.%player's uuid%} to player's walk speed
set {query.jump+.%player's uuid%} to {jump+::%player's uuid%}
#command /purchup1:
# trigger:
# if {Strength::%player%} is 20:
# message "&cYou have reached the maximum Strength Level."
# else:
# if {Strength::%player%} is greater than 20:
# message "&cYou have reached the maximum Strength Level."
# else:
# message "&a+0.1 Hearts DAMAGE"
# remove 2 from {upgradepoints::%player%}
# add 1 to {Strength::%player%}
# make player execute command "/upgrade"
#Strength
#on damage:
# set {_Dmg} to 0.1 + {Strength::%attacker%}
# damage the victim by {_Dmg} hearts
#on damage:
# set {_Dmg} to 0.01 - {Strength::%attacker%}
# if tool of attacker is bow:
# damage the victim by {_Dmg} hearts
#
every second:
loop all players:
apply jump boost {jump+::%loop-player's uuid%} * 10 without any
particles to loop-player for 1 second
function jumping(p: player):
set {_uuid} to uuid of {_p}
set {jumping::%{_uuid}%} to 1
while block below {_p} is air:
wait a tick
delete {jumping::%{_uuid}%}
on jump:
jumping(player)
if {jump+::%player's uuid%} is 0.3:
set {protection.jump.%player's uuid%} to 1
wait 12 ticks
delete {protection.jump.%player's uuid%}
stop
else if {jump+::%player's uuid%} is 0.4:
set {protection.jump.%player's uuid%} to 1
wait 15 ticks
delete {protection.jump.%player's uuid%}
stop
else if {jump+::%player's uuid%} is 0.5:
set {protection.jump.%player's uuid%} to 1
wait 1 second
delete {protection.jump.%player's uuid%}
stop
on damage:
if {protection.jump.%victim's uuid%} is set:
damage cause is fall
cancel event
command /stats [<text>] [<text>] [<number>]:
trigger:
arg-1 is "modify":
arg-2 is "jump":
if {query.jump+.%player's uuid%} * 10 >= arg-3:
set {jump+::%player's uuid%} to arg-3 / 10
send "&aJump is now at %arg-3 / 10%&a!"
stop
send "&cYou cannot modify over your maximum jump, Or this
is already your jump speed!"
stop
send "&cUnknown options: Valid options are 'jump'"
stop
arg-1 is "admin":
player has permission "stats.admin":
arg-2 is "jump":
arg-3 < 110:
arg-3 <= 5:
set {jump+::%player's uuid%} to arg-3 /
10
send "&c&lADMIN &aJump is now at %arg-3 /
10%&a!"
stop
set {jump+::%player's uuid%} to arg-3 / 10
send "&c&lADMIN &aJump is now at %arg-3 /
10%&a! &c(Fall damage occurs past 0.5!)"
stop
send "&cCannot go above 109 jump! (You wont jump past
109)"
stop
arg-2 is "speed":
arg-3 <= 10:
set player's walk speed to arg-3 / 10
send "&c&lADMIN &aSpeed is now at %arg-3 /
10%&a!"
stop
send "&cCannot go above a speed of 1"
stop
send "&cUnknown options: Valid options are 'jump' and
'speed'"
stop
send "&cNo Permission!"
stop
send "&cUnknown options: Valid options are 'modify' and 'admin'"
stop
every second:
loop all players:
if {query.jump+.%loop-player's uuid%} < {jump+::%loop-player's uuid%}:
set {query.jump+.%loop-player's uuid%} to {jump+::%loop-player's
uuid%}
on join:
while player is online:
if player's health < (player's max health / 3):
apply slowness to player for 2 ticks
wait 2 ticks
on damage:
attacker's health < (attacker's max health / 3):
damage >= 2:
set damage to (damage - 1)
else if damage >= 1:
set damage to (damage - 0.5)
else:
set damage to 0