1. 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!


    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

experience drops aren't accurate

Discussion in 'Skript' started by 83y, Aug 17, 2020.

Thread Status:
Not open for further replies.
  1. 83y

    83y New Member

    Nov 7, 2019
    Likes Received:
    Hi, im trying to make xp drop when a player dies however, when the player dies and the xp drops, the xp drop is accurate in the broadcast, but when I go to pick up the xp orb the amount of xp is different. How do I fix this?
    Code (Text):
    1. on death:
    2.     if attacker is a player:
    3.         if victim is a player:
    4.             set {_loc} to victim's location
    5.             set {_attackersxp} to attacker's xp
    6.             broadcast "%{_attackersxp}%"
    7.             set {_xp} to (20 + ({_attackersxp} * 1.33 ))
    8.             spawn {_xp} of xp at {_loc}
    9.             broadcast "%{_xp}%"
    Im using 1.8.8 paper spigot
Thread Status:
Not open for further replies.

Share This Page