Date: 2016/01/21 10:05:34 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
DiceRollCommand:
Type: World
Events:
On DiceRoll Command:
- determine passively fulfilled
- if <player.has_flag[dice_roll_cooldown]> {
- narrate "<&a>You have already rolled the dice! Please wait <player.flag[dice_roll_cooldown].expiration.formatted> before rolling the dice again."
- queue clear
}
- take money quantity:3500
- flag player dice_roll_cooldown duration:12h
- narrate "<&a>$3,500 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]>
if <player.flag[diceNum]> == 50 {
- inject DiceFireworks
- give i@383,50 <player> qty:6
- announce "<&2><player.name><&6> just rolled the<&l> GRAND PRIZE: <&2><&l>6x Creeper Eggs!"
- inject DiceFireworks
}
if <player.flag[diceNum]> == 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
}
if <player.flag[diceNum]> == 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
}
if <player.flag[diceNum]> == 47 {
- narrate "<&6>You rolled 47! You win a <&8>Lucky <&7>Dice <&6>Armor Set!"
- give i@diamond_helmet[display_name=<&8>Lucky<&7><&sp>Dice<&f><&sp>Helmet;enchantments=PROTECTION_ENVIRONMENTAL,4|DURABILITY,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_chestplate[display_name=<&8>Lucky<&7><&sp>Dice<&f><&sp>Chestplate;enchantments=PROTECTION_ENVIRONMENTAL,4|DURABILITY,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_leggings[display_name=<&8>Lucky<&7><&sp>Dice<&f><&sp>Leggings;enchantments=PROTECTION_ENVIRONMENTAL,4|DURABILITY,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_boots[display_name=<&8>Lucky<&7><&sp>Dice<&f><&sp>Boots;enchantments=PROTECTION_ENVIRONMENTAL,4|DURABILITY,3|PROTECTION_FALL,4];lore=It<&sq>s<&sp>only<&sp>a<&sp>gambling<&sp>problem<&sp>if<&sp>you<&sq>re<&sp>losin<&sq>.]
}
if <player.flag[diceNum]> == 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>.]
}
if <player.flag[diceNum]> >= 43 && <player.flag[diceNum]> <= 45 {
- inject RoyalArmor
}
if <player.flag[diceNum]> >= 40 && <player.flag[diceNum]> <= 42 {
- inject SuperGoldenApples
}
if <player.flag[diceNum]> >= 31 && <player.flag[diceNum]> <= 39 {
- inject GoldenApples
}
if <player.flag[diceNum]> >= 27 && <player.flag[diceNum]> <= 30 {
- inject Obsidian
}
if <player.flag[diceNum]> >= 24 && <player.flag[diceNum]> <= 26 {
- inject Diamond
}
if <player.flag[diceNum]> >= 19 && <player.flag[diceNum]> <= 23 {
- inject Enderpearl
}
if <player.flag[diceNum]> >= 16 && <player.flag[diceNum]> <= 19 {
- inject Obsidian
}
- default:
- inject default
- 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:
- narrate "<&6>You've rolled <player.flag[diceNum]>! You win <&e>4x Super Golden Apples!"
- give i@golden_apple,1[apple_enchanted=true] qty:4
GoldenApples:
type: task
script:
- narrate "<&6>You've rolled <player.flag[diceNum]>! You win <&e>32x Golden Apples!"
- give i@golden_apple qty:32
Obsidian:
type: task
script:
- narrate "<&6>You've rolled <player.flag[diceNum]>! You win <&5>16x Obsidian!"
- give i@obsidian qty:16
Diamond:
type: task
script:
- narrate "<&6>You've rolled <player.flag[diceNum]>! You win <&b>16x Diamonds!"
- give i@diamond qty:16
EnderPearl:
type: task
script:
- narrate "<&6>You've rolled <player.flag[diceNum]>! You win <&5>6x Enderpearls!"
- give i@ender_pearl qty:6
PotionSet:
type: task
script:
- narrate "<&6>You've rolled <player.flag[diceNum]>! You win <&e>A Potion Set!"
- give i@373,8297 qty:3
- give i@373,8290 qty:3
- give i@373,8291 qty:2
default:
type: task
script:
- narrate "<&6>Sorry you didn't win anything this time!"