Solved I need help with Skript for Minecraft server

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Zan

New Member
Apr 26, 2018
6
0
0
25
Hello,
i need help with creating a skript. I want to set player exp to 0 when he dies.


Best regards,
Zan
 
You don't need to, I mean, when they die, they lose all of their xp already.. so what's the point
 
Thats the problem, they don't lose all of their exp, thats why i need skript
 
code_language.skript:
on death of player:
    cancel the drops of experience

This requires TusKE 1.0 Addon
 
code_language.skript:
set player's level to <NUMBER>
example 1:
code_language.skript:
set player's level to 10
example 2:
code_language.skript:
command /setlvl <player> <number>:
    trigger:
        if arg 1 is not set:
            send "set a player!"
        else:
            if arg 2 is not set:
                send "set a number of exp"
            else:
                set arg-1's level to arg 2
                send "%arg-1%'s lvl is now %arg-2%
 
Last edited:
  • Like
Reactions: Zan
Status
Not open for further replies.