Advertisement
sora200507

Untitled

Sep 14th, 2018
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. #Deathchest by Esmorall
  2.  
  3. options:
  4. #message shown above the chest
  5. message: &6&l%player%'s Tomb
  6.  
  7. #sound when player kills another player
  8. sound: ORB_PICKUP
  9.  
  10. #time in seconds for the chest to disappear (set time to 0 if you want it permanent)
  11. time: 60
  12.  
  13. on death of player:
  14. player is in "survival"
  15. set {_d} to false
  16. set the block at location of victim to chest
  17. set {_dchest} to block at location of victim
  18. set {_dchest2} to block at location of victim
  19. add 1 to x-coordinate of {_dchest2}
  20. set {_c} to 0
  21. add helmet of victim to {_dchest}
  22. add chestplate of victim to {_dchest}
  23. add leggings of victim to {_dchest}
  24. add boots of victim to {_dchest}
  25. set {_count} to 0
  26. loop 36 times:
  27. add slot {_count} of victim's inventory to {_dchest}
  28. add 1 to {_count}
  29. {_c} is greater than 23:
  30. {_d} is false:
  31. set block at location of {_dchest2} to chest
  32. set {_d} to true
  33. add slot {_count} of victim's inventory to {_dchest2}
  34. add 1 to {_count}
  35. clear drops
  36. set {_holo} to block above {_dchest}
  37.  
  38. on break of chest:
  39. player is in "survival"
  40. set {_dchest} to event-block
  41.  
  42. on click on chest:
  43. player is in "survival"
  44. set {_cnx} to {_cnx} parsed as number
  45. set {_cny} to {_cny} parsed as number
  46. set {_cnz} to {_cnz} parsed as number
  47. set {_loc} to location
  48. set x-coordinate of {_loc} to {_cnx}
  49. set y-coordinate of {_loc} to {_cny}
  50. set z-coordinate of {_loc} to {_cnz}
  51. open the inventory of the block at {_loc} to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement