-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmcmmocrate.sk
94 lines (85 loc) · 3.69 KB
/
mcmmocrate.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
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
command /mmocratehelp:
trigger:
if player has permission "mmocrate.use.help":
send "&6---------&fMCMMO&acrate help&8---------"
send "&6- &3/mmocrate <player> | &eGives a MCMMO Crate."
else:
send "&cYou don't have permission!"
command /mmocrate <players>:
permission: mmocrate.give
permission message: &7[&fMCMMO&acrate&7] &cYou don't have permission to execute this command.
description: Get a MCMMO Crate!
trigger:
give arg 1 chest named "&f&lMCMMO&a&lcrate" with lore "&7>> (Right-click) to receive your MCMMO <<"
options:
Prefix: &7[&fMCMMO&acrate&7] &r
Percentage: 100
Broadcast: true
BroadcastMessage: &e&l%player% &bhas opened a &fMCMMO&acrate
RewardMessage1: &bYou have received &f&l10 MCMMO Credits
RewardMessage2: &bYou have received &f&l20 MCMMO Credits
RewardMessage3: &bYou have received &f&l30 MCMMO Credits
RewardMessage4: &bYou have received &f&l40 MCMMO Credits
RewardMessage5: &bYou have received &f&l50 MCMMO Credits
RewardMessage6: &bYou have received &f&l60 MCMMO Credits
RewardMessage7: &bYou have received &f&l70 MCMMO Credits
RewardMessage8: &bYou have received &f&l80 MCMMO Credits
RewardMessage9: &bYou have received &f&l90 MCMMO Credits
RewardMessage10: &bYou have received &f&l100 MCMMO Credits
RewardMessage11: &bYou have received &f&l110 MCMMO Credits
RewardMessage12: &bYou have received &f&l120 MCMMO Credits
RewardMessage13: &bYou have received &f&l130 MCMMO Credits
RewardMessage14: &bYou have received &f&l140 MCMMO Credits
RewardMessage15: &bYou have received &f&l150 MCMMO Credits
on rightclick:
player is holding chest named "&f&lMCMMO&a&lcrate" with lore "&7>> (Right-click) to receive your MCMMO <<"
remove 1 chest named "&f&lMCMMO&a&lcrate" with lore "&7>> (Right-click) to receive your MCMMO <<" from player
chance of {@Percentage}%
if "{@Broadcast}" is "true":
broadcast "{@Prefix}{@BroadcastMessage}"
set {MCMMO} to a random integer between 1 and 15
if {MCMMO} is 1:
execute console command "/addcredits %player% 10"
message "{@Prefix}{@RewardMessage1}"
if {MCMMO} is 2:
execute console command "/addcredits %player% 20"
message "{@Prefix}{@RewardMessage2}"
if {MCMMO} is 3:
execute console command "/addcredits %player% 30"
message "{@Prefix}{@RewardMessage3}"
if {MCMMO} is 4:
execute console command "/addcredits %player% 40"
message "{@Prefix}{@RewardMessage4}"
if {MCMMO} is 5:
execute console command "/addcredits %player% 50"
message "{@Prefix}{@RewardMessage5}"
if {MCMMO} is 6:
execute console command "/addcredits %player% 60"
message "{@Prefix}{@RewardMessage6}"
if {MCMMO} is 7:
execute console command "/addcredits %player% 70"
message "{@Prefix}{@RewardMessage7}"
if {MCMMO} is 8:
execute console command "/addcredits %player% 80"
message "{@Prefix}{@RewardMessage8}"
if {MCMMO} is 9:
execute console command "/addcredits %player% 90"
message "{@Prefix}{@RewardMessage9}"
if {MCMMO} is 10:
execute console command "/addcredits %player% 100"
message "{@Prefix}{@RewardMessage10}"
if {MCMMO} is 11:
execute console command "/addcredits %player% 110"
message "{@Prefix}{@RewardMessage11}"
if {MCMMO} is 12:
execute console command "/addcredits %player% 120"
message "{@Prefix}{@RewardMessage12}"
if {MCMMO} is 13:
execute console command "/addcredits %player% 130"
message "{@Prefix}{@RewardMessage13}"
if {MCMMO} is 14:
execute console command "/addcredits %player% 140"
message "{@Prefix}{@RewardMessage14}"
if {MCMMO} is 15:
execute console command "/addcredits %player% 150"
message "{@Prefix}{@RewardMessage15}"