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!

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our 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.

Double xp

Discussion in 'Skript' started by DarkMbs, Jun 20, 2019.

Thread Status:
Not open for further replies.
  1. DarkMbs

    DarkMbs Member

    Joined:
    Jun 19, 2019
    Messages:
    10
    Likes Received:
    0
    I want to make it so when a player is holding an custom iteam and the player mines a block i want the xp to drop double!
     
  2. novastosha

    novastosha Well-Known Member

    Joined:
    Jan 11, 2019
    Messages:
    107
    Likes Received:
    5
    Dude, You joined yesterday and you got all of this Messages & links is this a bot thing or what?
     
  3. DarkMbs

    DarkMbs Member

    Joined:
    Jun 19, 2019
    Messages:
    10
    Likes Received:
    0
    I have tried those they are not working for me
     
  4. Runakai1

    Runakai1 Well-Known Member

    Joined:
    Apr 27, 2018
    Messages:
    386
    Likes Received:
    20
    Why are you having 205 messages and 126 likes? You joined today.
     
  5. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,010
    Likes Received:
    139
    Well, the forums are well known for glitches :emoji_wink:

    Use a break event, then check for the type and name of the players tool. If the conditions match, drop more XP
     
  6. DarkMbs

    DarkMbs Member

    Joined:
    Jun 19, 2019
    Messages:
    10
    Likes Received:
    0
    Code (Text):
    1. on mine of any ore:
    2.     if lore of player's held item is "&e&lDouble Xp":
    3.         message "You are a good boi!"
    4.         wait 2 ticks

    this is what i have so far its not much but i cant get the xp to drop more
    --- Double Post Merged, Jun 20, 2019, Original Post Date: Jun 20, 2019 ---
    and if i want to use this https://skripthub.net/docs/?id=292 how will i make it work
    Code (Text):
    1. on block break xp drop:
    2.                         if lore of player's held item is "&e&lDouble Xp":
    3.                                                 message "You are a good boi!"
    4.                                                 wait 2 ticks
    5.                                                 add 20 xp
     
  7. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,010
    Likes Received:
    139
    I would try something like `spawn 1 experience orb at %location%`
     
  8. DarkMbs

    DarkMbs Member

    Joined:
    Jun 19, 2019
    Messages:
    10
    Likes Received:
    0
    i tried this but it didn't work so I changed it a bit.... but it is only doing the effects the orbs don't count as xp
    Code (Text):
    1. on block break xp drop:
    2.                         if lore of player's held item is "&e&lDouble Xp":
    3.                                                 message "You are a good boi!"
    4.                                                 wait 2 ticks
    5.                                                 #spawn 100 experience orb at %location%
    6.                                                 spawn 500 xp orbs at the targeted block
    7.  
     
Thread Status:
Not open for further replies.
Loading...