Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Deathchest by Esmorall
- options:
- #message shown above the chest
- message: &6&l%player%'s Tomb
- #sound when player kills another player
- sound: ORB_PICKUP
- #time in seconds for the chest to disappear (set time to 0 if you want it permanent)
- time: 60
- on death of player:
- player is in "survival"
- set {_d} to false
- set the block at location of victim to chest
- set {_dchest} to block at location of victim
- set {_dchest2} to block at location of victim
- add 1 to x-coordinate of {_dchest2}
- set {_c} to 0
- add helmet of victim to {_dchest}
- add chestplate of victim to {_dchest}
- add leggings of victim to {_dchest}
- add boots of victim to {_dchest}
- set {_count} to 0
- loop 36 times:
- add slot {_count} of victim's inventory to {_dchest}
- add 1 to {_count}
- {_c} is greater than 23:
- {_d} is false:
- set block at location of {_dchest2} to chest
- set {_d} to true
- add slot {_count} of victim's inventory to {_dchest2}
- add 1 to {_count}
- clear drops
- set {_holo} to block above {_dchest}
- on break of chest:
- player is in "survival"
- set {_dchest} to event-block
- on click on chest:
- player is in "survival"
- set {_cnx} to {_cnx} parsed as number
- set {_cny} to {_cny} parsed as number
- set {_cnz} to {_cnz} parsed as number
- set {_loc} to location
- set x-coordinate of {_loc} to {_cnx}
- set y-coordinate of {_loc} to {_cny}
- set z-coordinate of {_loc} to {_cnz}
- open the inventory of the block at {_loc} to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement