Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /veinminer <text>:
- permission: skript.op
- trigger:
- if arg 1 is "on":
- set {scenario::veinminer} to true
- send "&aEnabled"
- else if arg 1 is "off":
- delete {scenario::veinminer}
- send "&cDisabled"
- on mine of coal ore:
- {scenario::veinminer} is true
- player is sneaking
- loop blocks in radius 4 around event-block:
- loop-block is equal to coal ore
- set loop-block to air
- if player has space for (1 of coal):
- give player (1 coal)
- else:
- drop (1 of coal ore) at (location 0.5 above player)
- drop 3 xp at player
- play "DIG_STONE" specifically to player with pitch 1 and volume 1.0
- wait 1 ticks
- on mine of iron ore:
- {scenario::veinminer} is true
- player is sneaking
- loop blocks in radius 3 around event-block:
- loop-block is equal to iron ore
- set loop-block to air
- if {scenario::cutclean} is true:
- set {_block} to iron ingot
- drop 3 xp at player
- else:
- set {_block} to iron ore
- if player has space for (1 of {_block}):
- give player (1 of {_block})
- else:
- drop (1 of {_block}) at (location 0.5 above player)
- play "DIG_STONE" specifically to player with pitch 1 and volume 1.0
- wait 1 ticks
- on mine of gold ore:
- {scenario::veinminer} is true
- player is sneaking
- loop blocks in radius 2 around event-block:
- loop-block is equal to gold ore
- set loop-block to air
- if {scenario::cutclean} is true:
- set {_block} to gold ingot
- drop 4 xp at player
- else:
- set {_block} to gold ore
- if player has space for (1 of {_block}):
- give player (1 of {_block})
- else:
- drop (1 of {_block}) at (location 0.5 above player)
- play "DIG_STONE" specifically to player with pitch 1 and volume 1.0
- wait 1 tick
- on mine of lapis lazuli ore:
- {scenario::veinminer} is true
- player is sneaking
- loop blocks in radius 2 around event-block:
- loop-block is equal to lapis lazuli ore
- set loop-block to air
- if player has space for (6 of lapis lazuli):
- give player (6 of lapis lazuli)
- else:
- drop (6 of lapis lazuli) at (location 0.5 above player)
- drop 4 xp at player
- play "DIG_STONE" specifically to player with pitch 1 and volume 1.0
- wait 1 ticks
- on mine of redstone ore:
- {scenario::veinminer} is true
- player is sneaking
- loop blocks in radius 3 around event-block:
- loop-block is equal to redstone ore
- set loop-block to air
- if player has space for (4 of redstone):
- give player (4 of redstone)
- else:
- drop (4 of redstone) at (location 0.5 above player)
- drop 4 xp at player
- play "DIG_STONE" specifically to player with pitch 1 and volume 1.0
- wait 1 tick
- on mine of diamond ore:
- {scenario::veinminer} is true
- player is sneaking
- loop blocks in radius 2 around event-block:
- loop-block is equal to diamond ore
- set loop-block to air
- if player has space for (1 of diamond):
- give player (1 of diamond)
- else:
- drop (1 of diamond) at (location 0.5 above player)
- drop 5 xp at player
- play "DIG_STONE" specifically to player with pitch 1 and volume 1.0
- wait 1 ticks
- on mine of emerald ore:
- {scenario::veinminer} is true
- player is sneaking
- loop blocks in radius 1 around event-block:
- loop-block is equal to emerald ore
- set loop-block to air
- if player has space for (1 of emerald):
- give player (1 of emerald)
- else:
- drop (1 of emerald) at (location 0.5 above player)
- drop 6 xp at player
- play "DIG_STONE" specifically to player with pitch 2 and volume 0.5
- wait 1 tick
- on mine of gravel:
- {scenario::veinminer} is true
- player is sneaking
- loop blocks in radius 5 around event-block:
- loop-block is equal to gravel
- set loop-block to air
- if player has space for (1 of flint):
- give player (1 of flint)
- else:
- drop (1 of flint) at (location 0.5 above player)
- play "DIG_GRAVEL" specifically to player with pitch 0.8 and volume 0.5
- wait 1 tick
- #GraveRobbers, made: 01 December 2016, 15:51:54
- 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