Date: 2016/02/07 16:39:36 UTC-08:00
Type: Denizen Script
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
CraftingTableCommand:
type: command
debug: false
name: workbench
permission: ntb.workbench
permission message: "<&c>Redstone Rank only!"
aliases:
- wb
script:
- inventory open d:in@workbench
RankUpScript:
type: command
debug: true
name: rankup
description: Gives Redstone Rank.
usage: /rankup redstone
script:
- if <context.raw_args> == redstone {
- if <player.has_flag[redstoneRank]> {
- narrate "<red>You already own the rank, fatty."
- queue clear
}
- if !<player.inventory.contains[redstone_block]> {
- if !<player.inventory.contains[MiniumShard].quantity[12]> {
- if !<player.inventory.contains[diamond]> {
- narrate "<red>You don't have required items!"
- narrate "<gold>You need 1 Redstone Block, 12 MiniumShards, and a diamond!"
- queue clear
}
}
}
- take redstone_block quantity:1
- take Miniumshard quantity:12
- take diamond quantity:1
- flag player redstoneRank
- flag player prefix:<&4>Redstone
- narrate "<red>You have been promoted to Redstone Rank!"
- narrate "<white>You have unlocked the redstone and food kit!"
- narrate "<purple>You are now able to do /tpa, /tpaccept, /tpahere, /workbench[/wb]."
- permission add essentials.kits.redstone
- permission add essentials.kits.food
- permission add essentials.tpa
- permission add essectials.tpaccept
- permission add essentials.tpahere
- permission add ntb.workbench
}
- if <context.raw_args> == iron {
- if <player.has_flag[ironRank]> {
- narrate "<red>You already own the rank, fatty."
- queue clear
}
- if !<player.inventory.contains[iron_block]> {
- if !<player.inventory.contains[MiniumShard].quantity[24]> {
- if !<player.inventory.contains[diamond].quantity[6]> {
- narrate "<red>You don't have required items!"
- narrate "<gold>You need 1 Iron Block, 24 MiniumShards, and 6 diamond!"
- queue clear
}
}
}
- take iron_block quantity:1
- take Miniumshard quantity:24
- take diamond quantity:6
- flag player ironRank
- flag player prefix:!
- flag player prefix:<&f>Iron
- narrate "<gray>You have been promoted to Iron Rank!"
- narrate "<white>You have unlocked the iron kit!"
- narrtae "<purple>You are now able to TNT spawners and have a 70<&pc> drop chance! You are able to do /enderchest."
- permission add essentials.kits.iron
- permission add silkspawners.explodedrop
- permission add essentials.enderchest
}
- if <context.raw_args> == diamond {
- if <player.has_flag[diamondRank]> {
- narrate "<red>You already own the rank, fatty."
- queue clear
}
- if !<player.inventory.contains[diamond_block]> {
- if !<player.inventory.contains[MiniumShard].quantity[64]> {
- if !<player.inventory.contains[enchantedgoldenapple]> {
- narrate "<red>You don't have required items!"
- narrate "<gold>You need 1 Diamond Block, 64 MiniumShards, and a Notch Apple(Enchanted Golden Apple)!"
- queue clear
}
}
}
- take diamond_block quantity:1
- take Miniumshard quantity:64
- take enchantedgoldenapple quantity:1
- flag player diamondRank
- flag player prefix:!
- flag player prefix:<&b>Diamond
- narrate "<blue>You have been promoted to Diamond Rank!"
- narrate "<white>You have unlocked the diamond kit!"
- narrate "<purple>You are now able to use /repair /hat and break spwaners for 100<&pc> chance with silk touch."
- permission add essentials.kits.diamond
- permission add silkspawners.silkdrop.*
- permission add essentials.repair
- permission add essentials.hat
}