Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on death of player:
- world of victim is not "lobby" or "arena2"
- {scenario::preamblee's_graverobbers} is true
- set {_session} to new edit session in player's world with limit -1
- paste schem "plugins/WorldEdit/schematics/chamber" at (location of victim) using {_session}
- paste schem "plugins/WorldEdit/schematics/base" at (location of victim) using {_session} ignoring air
- set {_ChestRoom} to location 12 below (location of victim)
- loop all blocks in radius 3 around {_ChestRoom}:
- if loop-block is a chest:
- add location of loop-block to {_Chests::*}
- loop integers from 0 to 35:
- add (slot loop-integer of victim) to {_Inv::%victim%::*}
- add helmet of victim to {_Inv::%victim%::*}
- add chestplate of victim to {_Inv::%victim%::*}
- add leggings of victim to {_Inv::%victim%::*}
- add boots of victim to {_Inv::%victim%::*}
- add victim's skull to {_Inv::%victim%::*}
- loop {_Inv::%victim%::*}:
- set {_l::*} to 1, 2, 3 and 4
- set {_c} to a random element out of {_l::*}
- add loop-value to the inventory of the block at {_Chests::%{_c}%}
- clear drops
- on damage of player:
- if check [{scenario::pgr} is true]->[damage cause is suffocation]:
- 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