Paste #28430: Untitled Paste

Date: 2016/01/14 12:46:24 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12


XPPots:  
    type: command  
    name: Convertxp 
    description: Turn all your EXP Bottles into XP! 
    permission: denizen.xppots 
    usage: /convertxp 
    script:  
      - if <player.inventory.list_contents.contains[i@experience_bottle]> true { 
      - <player.inventory.list_contents.find[i@experience_bottle]> 
      - define amount <player.inventory.slot[<player.inventory.list_contents.find[i@experience_bottle]>].quantity> 
      - take experience_bottle qty:<def[amount]> 
      - give xp qty:<def[amount].mul[5]>