Advertisement
Guest User

GraveRobbers.sk

a guest
May 23rd, 2018
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.40 KB | None | 0 0
  1. command /graverobbers <text>:
  2. aliases: /gr
  3. permission: skript.op
  4. trigger:
  5. if arg 1 is "on":
  6. set {scenario::graverobbers} to true
  7. send "&aEnabled"
  8. else if arg 1 is "off":
  9. delete {scenario::graverobbers}
  10. send "&cDisabled"
  11.  
  12. on death of player:
  13. {scenario::graverobbers} is true
  14. clear drops
  15. set {GR::loc::%victim%} to (location 2 below victim)
  16.  
  17. if block at (location 1 above {GR::loc::%victim%}) is air:
  18. set {_c} to y-coordinate of {GR::loc::%victim%}
  19. loop 256 times:
  20. if block at (location loop-number below {GR::loc::%victim%}) is not air:
  21. set {GR::loc::%victim%} to (location loop-number+1 below {GR::loc::%victim%})
  22. stop loop
  23.  
  24. set block 1 meter north of {GR::loc::%victim%} to chest
  25. set block at {GR::loc::%victim%} to chest
  26.  
  27. set the inventory of the block at {GR::loc::%victim%} to victim's inventory
  28. add the victim's helmet slot to the inventory of the block at {GR::loc::%victim%}
  29. add the victim's chestplate slot to the inventory of the block at {GR::loc::%victim%}
  30. add the victim's leggings slot to the inventory of the block at {GR::loc::%victim%}
  31. add the victim's boots slot to the inventory of the block at {GR::loc::%victim%}
  32. #clear the victim's inventory
  33.  
  34. set {GR::loc::%victim%} to (location 1 above {GR::loc::%victim%})
  35.  
  36. set block 1 meter north of {GR::loc::%victim%} to gravel
  37. set block at {GR::loc::%victim%} to gravel
  38.  
  39. set block 2 meter north of {GR::loc::%victim%} to cobblestone
  40. set block 1 meter south of {GR::loc::%victim%} to cobblestone
  41.  
  42. set {_e} to block 1 meter east of {GR::loc::%victim%}
  43. set {_w} to block 1 meter west of {GR::loc::%victim%}
  44.  
  45. set block 1 meter north of {_e} to cobblestone
  46. set block 2 meter north of {_e} to mossy cobblestone
  47. set block 1 meter south of {_e} to cobblestone
  48. set block at {_e} to mossy cobblestone
  49.  
  50. set block 1 meter north of {_w} to cobblestone
  51. set block 2 meter north of {_w} to mossy cobblestone
  52. set block 1 meter south of {_w} to cobblestone
  53. set block at {_w} to mossy cobblestone
  54.  
  55. set block 2 meter north of {GR::loc::%victim%} to cobblestone
  56. set {_h} to block 2 meter north of {GR::loc::%victim%}
  57. set {_h} to block 1 above {_h}
  58. set block at {_h} to sign
  59.  
  60. set line 1 of block at {_h} to "&cR.I.P"
  61. set line 2 of block at {_h} to "%victim%"
  62. set line 3 of block at {_h} to "&cKilled by"
  63. set line 4 of block at {_h} to "%attacker%"
  64.  
  65. on script unload:
  66. delete {GR::*}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement