Guest User

Sponsor chest

a guest
Jul 22nd, 2015
460
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. command /sponsor:
  2.     permission: sponsor.use
  3.     trigger:
  4.         set {_locp} to location of player
  5.         set block at {_locp} to trapped chest
  6.         send "&5Tu a recus ton sponsor"
  7.         set {sponsor.use} to true
  8.  
  9. On rightclick on trapped chest:
  10.     if {sponsor.use} is true:
  11.         chance of 10%
  12.         add 2 diamond to {random.item.list::*}
  13.         add 1 diamond sword to {random.item.list::*}
  14.         add 10 wood to {random.item.list::*}
  15.         add 1 diamond chestplate to {random.item.list::*}
  16.         chance of 30%
  17.         add 1 diamond to {random.item.list::*}
  18.         add 1 iron sword to {random.item.list::*}
  19.         add 1 iron chestplate to {random.item.list::*}
  20.         add 10 arrow to {random.item.list::*}
  21.         add 1 bow to {random.item.list::*}
  22.         chance of 60%
  23.         add 16 stone to {random.item.list::*}
  24.         add 4 stick to {random.item.list::*}
  25.         add 1 stone sword to {random.item.list::*}
  26.         chance of 90%
  27.         add 8 steak to {random.item.list::*}
  28.         add 5 apple to {random.item.list::*}
  29.         add 1 wooden sword to {random.item.list::*}
  30.         chance of 100%
  31.         set {randomitem} to random element out of {random.item.list::*}
  32.         add a random item out of {randomitem} to the targeted block's inventory
Advertisement
Add Comment
Please, Sign In to add comment