Date: 2016/01/12 14:51:54 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
DiceRollCommand:
Type: World
Events:
On DiceRoll Command:
- determine passively fulfilled
- if <player.has_flag[dice_roll_cooldown]> {
- narrate "You have already rolled the dice! Please wait <player.flag[dice_roll_cooldown].expiration.formatted> before rolling the dice again."
- queue clear
}
- flag player dice_roll_cooldown duration:5m
- take money quantity:1000
- narrate "<&a>$1,000 has been deducted from your account."
- narrate "<&6>Rolling Dice!"
- run RollDice delay:2s
DiceFireworks:
Type: Task
Script:
- firework <player.location> star primary:yellow fade:white
- firework <player.location> star primary:red fade:white
RollDice:
Type: Task
Script:
- flag player diceNum:<util.random.int[1].to[50]>
- choose <player.flag[diceNum]>:
- case 50:
- announce "<&2><player.name><&6> just rolled the<&l> GRAND PRIZE: <&2><&l>6x Creeper Eggs!"
- narrate "<&6>You rolled <&l>GRAND PRIZE! You win!"
- give i@383,50 <player> qty:6
- inject DiceFireworks
- case 49:
- announce "<&2><player.name><&6> just rolled the<&l> Second Grand Prize: <&2><&l>$50.000!"
- narrate "<&a>$50,000 has been added to your account."
- give money quantity:50000
- inject DiceFireworks
- case 48:
- announce "<&2><player.name><&6> just rolled the<&l> Third Grand Prize: <&2><&l>$35.000!"
- narrate "<&a>$35,000 has been added to your account."
- give money quantity:35000
- inject DiceFireworks
- case 47:
- Diamond Armor
- case 46:
- narrate "<&6>You've rolled 46! You win!"
- give i@diamond_Sword[display_name=<&8>Lucky<&7><&sq>Dice<&f><&sq>Sword;enchantments=DAMAGE_ALL,5|DURABILITY,3|FIRE_ASPECT,2];lore=It<&sq>s<&sp>only<&sp>a<&sp>gambling<&sp>problem<&sp>if<&sp>you<&sq>re<&sp>losin<&sq>.]
- give i@bow[display_name=<&8>Lucky<&7><&sq>Dice<&f><&sq>Bow;enchantments=ARROW_DAMAGE,5]
- give i@diamond_pickaxe[display_name=<&8>Lucky<&7><&sq>Dice<&f><&sq>Pickaxe;enchantments=DIG_SPEED,5|DURABILITY,3|LOOT_BONUS_BLOCKS,3|];lore=It<&sq>s<&sp>only<&sp>a<&sp>gambling<&sp>problem<&sp>if<&sp>you<&sq>re<&sp>losin<&sq>.]
- give i@diamond_axe[display_name=<&8>Lucky<&7><&sq>Dice<&f><&sq>Axe;enchantments=DIG_SPEED,5|DURABILITY,3|LOOT_BONUS_BLOCKS,3|];lore=It<&sq>s<&sp>only<&sp>a<&sp>gambling<&sp>problem<&sp>if<&sp>you<&sq>re<&sp>losin<&sq>.]
- case 45:
- inject RoyalArmor
- case 44:
- inject RoyalArmor
- case 43:
- inject RoyalArmor
- case 42:
- inject SuperGoldenApples
- case 41:
- inject SuperGoldenApples
- case 40:
- inject SuperGoldenApples
- case 39:
- inject GoldenApples
- case 38:
- inject GoldenApples
- case 37:
- inject GoldenApples
- case 36:
- inject GoldenApples
- case 35:
- inject GoldenApples
- case 34:
- inject GoldenApples
- case 33:
- inject GoldenApples
- case 32:
- inject GoldenApples
- case 31:
- inject GoldenApples
- case 30:
- inject Obsidian
- case 29:
- inject Obsidian
- case 28:
- inject Obsidian
- case 27:
- inject Obsidian
- case 26:
- inject Diamond
- case 25:
- inject Diamond
- case 24:
- inject Diamond
- case 23:
- inject EnderPearl
- case 22:
- inject EnderPearl
- case 21:
- inject EnderPearl
- case 20:
- inject EnderPearl
- case 19:
- inject EnderPearl
- case 18:
- inject PotionSet
- case 17:
- inject PotionSet
- case 16:
- inject PotionSet
- default:
- nothing
- flag player diceNum:!
RoyalArmor:
type: task
script:
- narrate "<&6>You've rolled <player.flag[diceNum]>! You win!"
- give i@diamond_helmet[display_name=<&8><&lb><&5>Royal Helmet<&8><&rb>;enchantments=PROTECTION_ENVIRONMENTAL,4]
- give i@diamond_chestplate[display_name=<&8><&lb><&5>Royal Chestplate<&8><&rb>;enchantments=PROTECTION_ENVIRONMENTAL,4]
- give i@diamond_leggings[display_name=<&8><&lb><&5>Royal Leggings<&8><&rb>;enchantments=PROTECTION_ENVIRONMENTAL,4]
- give i@diamond_boots[display_name=<&8><&lb><&5>Royal Boots<&8><&rb>;enchantments=PROTECTION_ENVIRONMENTAL,4|PROTECTION_FALL,4]
SuperGoldenApples:
type: task
script:
- 4x Super Golden
GoldenApples:
type: task
script:
- 16x Golden
Obsidian:
type: task
script:
- 16x Obsidian
Diamond:
type: task
script:
- 16x Diamond
EnderPearl:
type: task
script:
- 6x Ender Pearl
PotionSet:
type: task
script:
- Potion Set (3x STR II (4MIN), 3x SPEED II (4MIN), 2x Fire res 8m)