Organized

PGR

Dec 21st, 2017
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. on death of player:
  2. world of victim is not "lobby" or "arena2"
  3. {scenario::preamblee's_graverobbers} is true
  4. set {_session} to new edit session in player's world with limit -1
  5. paste schem "plugins/WorldEdit/schematics/chamber" at (location of victim) using {_session}
  6. paste schem "plugins/WorldEdit/schematics/base" at (location of victim) using {_session} ignoring air
  7. set {_ChestRoom} to location 12 below (location of victim)
  8. loop all blocks in radius 3 around {_ChestRoom}:
  9. if loop-block is a chest:
  10. add location of loop-block to {_Chests::*}
  11. loop integers from 0 to 35:
  12. add (slot loop-integer of victim) to {_Inv::%victim%::*}
  13. add helmet of victim to {_Inv::%victim%::*}
  14. add chestplate of victim to {_Inv::%victim%::*}
  15. add leggings of victim to {_Inv::%victim%::*}
  16. add boots of victim to {_Inv::%victim%::*}
  17. add victim's skull to {_Inv::%victim%::*}
  18. loop {_Inv::%victim%::*}:
  19. set {_l::*} to 1, 2, 3 and 4
  20. set {_c} to a random element out of {_l::*}
  21. add loop-value to the inventory of the block at {_Chests::%{_c}%}
  22. clear drops
  23.  
  24. on damage of player:
  25. if check [{scenario::pgr} is true]->[damage cause is suffocation]:
  26. do [cancel event]->[set {_l} to block 1 above victim]->[set block at {_l} to air]->[set block at victim to air]
Advertisement
Add Comment
Please, Sign In to add comment