Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on break:
- if {skill.active.%player%} is true:
- execute console command "say"
- else:
- if player can build at targeted block:
- if player is holding a pickaxe:
- if {seichi.skill.normal.%player%} is true:
- loop blocks in radius 1.8 around the targeted block:
- if loop-block is coal ore:
- give player 1 coal
- set loop-block to air
- if loop-block is diamond ore:
- give player 1 diamond
- set loop-block to air
- if loop-block is gold ore:
- give player 1 gold ore
- set loop-block to air
- if loop-block is iron ore:
- give player 1 iron ore
- set loop-block to air
- if loop-block is stone:
- give player 1 cobble stone
- set loop-block to air
- if loop-block is dirt:
- give player 1 dirt
- set loop-block to air
- if loop-block is grass:
- give player 1 grass
- set loop-block to air
- command /unlock [<text>]:
- permission: unlockskill.admin
- trigger:
- if arg-1 is not set:
- message "&c/unlock <skill>"
- if arg-1 is set:
- set {seichi.skill.normal.%player%} to true
- on rightclick:
- if player is sneaking:
- if player is holding a pickaxe:
- if {skill.active.%player%} is true:
- set {skill.active.%player%} to false
- message "&6スキルを &aON &6にしました"
- execute console command "/playsound block.wood_button.click_on block %player% ~ ~ ~ 25555"
- stop
- else:
- set {skill.active.%player%} to true
- message "&6スキルを &aOFF &6にしました"
- execute console command "/playsound block.wood_button.click_on block %player% ~ ~ ~ 25555"
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement