Change droprate of a single XP bottle?

Discussion in 'Plugin Development' started by Baba43, Apr 16, 2013.

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

    Baba43

    Hello,

    I want to offer my players the possibility of saving their xp-points by transfering them into xp-bottles.

    Now I've read this about xp-bottles:


    And it makes me unhappy because I thing that I can't transfer XX XP into a single xp-bottle, right?
     
  2. Hmm, I belive you can mark your item with a custom name then on ProjectileLaunchEvent check if it's your item (if possible, otherwise PlayerInteractEvent) then store the entity UUID in a map with the exp value to drop and on ExpBottleEvent check if the entity is in your map and apply the stored experience :)
     
    Baba43 likes this.
Thread Status:
Not open for further replies.

Share This Page