Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /graverobbers <text>:
- aliases: /gr
- permission: skript.op
- trigger:
- if arg 1 is "on":
- set {scenario::graverobbers} to true
- send "&aEnabled"
- else if arg 1 is "off":
- delete {scenario::graverobbers}
- send "&cDisabled"
- on death of player:
- {scenario::graverobbers} is true
- clear drops
- set {GR::loc::%victim%} to (location 2 below victim)
- if block at (location 1 above {GR::loc::%victim%}) is air:
- set {_c} to y-coordinate of {GR::loc::%victim%}
- loop 256 times:
- if block at (location loop-number below {GR::loc::%victim%}) is not air:
- set {GR::loc::%victim%} to (location loop-number+1 below {GR::loc::%victim%})
- stop loop
- set block 1 meter north of {GR::loc::%victim%} to chest
- set block at {GR::loc::%victim%} to chest
- set the inventory of the block at {GR::loc::%victim%} to victim's inventory
- add the victim's helmet slot to the inventory of the block at {GR::loc::%victim%}
- add the victim's chestplate slot to the inventory of the block at {GR::loc::%victim%}
- add the victim's leggings slot to the inventory of the block at {GR::loc::%victim%}
- add the victim's boots slot to the inventory of the block at {GR::loc::%victim%}
- #clear the victim's inventory
- set {GR::loc::%victim%} to (location 1 above {GR::loc::%victim%})
- set block 1 meter north of {GR::loc::%victim%} to gravel
- set block at {GR::loc::%victim%} to gravel
- set block 2 meter north of {GR::loc::%victim%} to cobblestone
- set block 1 meter south of {GR::loc::%victim%} to cobblestone
- set {_e} to block 1 meter east of {GR::loc::%victim%}
- set {_w} to block 1 meter west of {GR::loc::%victim%}
- set block 1 meter north of {_e} to cobblestone
- set block 2 meter north of {_e} to mossy cobblestone
- set block 1 meter south of {_e} to cobblestone
- set block at {_e} to mossy cobblestone
- set block 1 meter north of {_w} to cobblestone
- set block 2 meter north of {_w} to mossy cobblestone
- set block 1 meter south of {_w} to cobblestone
- set block at {_w} to mossy cobblestone
- set block 2 meter north of {GR::loc::%victim%} to cobblestone
- set {_h} to block 2 meter north of {GR::loc::%victim%}
- set {_h} to block 1 above {_h}
- set block at {_h} to sign
- set line 1 of block at {_h} to "&cR.I.P"
- set line 2 of block at {_h} to "%victim%"
- set line 3 of block at {_h} to "&cKilled by"
- set line 4 of block at {_h} to "%attacker%"
- on script unload:
- delete {GR::*}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement