Onenrico

Chest Drop

Jun 1st, 2016
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. on death of player:
  2. if player has permission "mvp":
  3. stop
  4. set block at location of victim to chest
  5. loop blocks in radius 1 of victim:
  6. if loop-block is chest:
  7. set {_a} to location of loop-block
  8. set {death::%{_a}%} to "%victim%"
  9. loop all items in victim's inventory:
  10. add loop-item to {_loop::*}
  11. add {_loop::*} to inventory of block at {_a}
  12. remove {_loop::*} from victim
  13. on rightclick on chest:
  14. if {death::%location of block%} is set:
  15. set block to air
  16. send "&7[&bLoot&7]&fKamu Mengambil barang milik &6%{death::%location of block%}%"
  17. console command "/mail send %{death::%location of block%}% %player% telah mengambil Inventory mu yang terjatuh"
  18. on leftclick on chest:
  19. if {death::%location of block%} is set:
  20. set block to air
  21. send "&7[&bLoot&7]&fKamu Mengambil barang milik &6%{death::%location of block%}%"
  22. console command "/mail send %{death::%location of block%}% %player% telah mengambil Inventory mu yang terjatuh"
Advertisement
Add Comment
Please, Sign In to add comment