-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathExPick.sk
56 lines (50 loc) · 2.35 KB
/
ExPick.sk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#==================#
# ExPickaxes #
# v1.3.1 #
# ArcticRaven_ #
#==================#
#In order to change the blocks that the pickaxes will break, add them to lines 34 and 42
#following the same format as what is enabled by default.
options:
#This sets the maximum amout of blocks the pickaxes can break
EpickMaxHealth : 1561
#These set the thresholds for the notifications, by setting thier value above the EpickMaxHealth value, they will be removed
EpickNotif1 : 1400
EpickNotif2 : 1500
#This will enable the explosion effect for ALL players, also plays the explosion sound
ExpickEffect : true
command ExPick <text="3"> <player=%player%>:
usage: /expick <size> <player>
aliases: ExPick
permission: expick.give
permission message: &7&l[&4&lExPick&7&l] &cYou do not have the required permission to perform this command
trigger:
if arg-1 is "3":
give diamond pickaxe with lore "&6Explosive 3x3x3" to arg-2
if arg-1 is "5":
give diamond pickaxe with lore "&4Explosive 5x5x5" to arg-2
on block break:
if player have permission "epickaxe.use":
if player is holding a diamond pickaxe with lore "&6Explosive 3x3x3":
loop blocks in radius 1.75 of event-block:
if loop-blocks are stone or cobblestone or diorite or granite or andesite or sandstone or stone bricks or netherrack or nether bricks or endstone:
break loop-blocks naturally using player's tool
add 1 to {uses.%player%}
if {@ExpickEffect} is true:
create a fake explosion at event-block
if player is holding a diamond pickaxe with lore "&4Explosive 5x5x5":
loop blocks in radius 3.1 of event-block:
if loop-blocks are stone or cobblestone or diorite or granite or andesite or sandstone or stone bricks or netherrack or nether bricks or endstone:
break loop-blocks naturally using player's tool
add 1 to {uses.%player%}
if {@ExpickEffect} is true:
create a fake explosion at event-block
if {uses.%player%} is {@EpickNotif1}:
send action bar "&6Your Explosive Pickaxe will break soon!" to player
if {uses.%player%} is {@EpickNotif2}:
send action bar "&cYour Explosive Pickaxe will break very soon!" to player
if {uses.%player%} is {@EpickMaxHealth}:
set player's tool to air
set {uses.%player%} to 0
play sound "entity.item.break" with volume .75 to player
send action bar "&4Your Explosive Pickaxe has broken!" to player