SHOW:
|
|
- or go back to the newest paste.
1 | #Bucks Smash Bros Skript | |
2 | #Credit to Squattamelon for me stealing the base of superheroes + | |
3 | #Thanks to xXArdiVenomXx for me to steal the idea from | |
4 | ||
5 | options: | |
6 | P : &8[&aSmashbros&8]&b | |
7 | IS : &e/smashbros <fall/set/apply/reset> | |
8 | ||
9 | command /smashbros [<text>]: | |
10 | permission: skript.smashbros | |
11 | aliases: /smash | |
12 | trigger: | |
13 | if arg 1 is not set: | |
14 | message "{@P} {@IS}" | |
15 | else if arg 1 is equal to "fall": | |
16 | if {Smash.Fall} is true: | |
17 | delete {Smash.Fall} | |
18 | loop all players: | |
19 | loop-player has permission "skript.smashbros": | |
20 | message "{@P} &e%command sender%&b: Fall Damage enabled!" to loop-player | |
21 | else: | |
22 | message "{@P} Fall Damage enabled!" to loop-player | |
23 | else: | |
24 | set {Smash.Fall} to true | |
25 | loop all players: | |
26 | loop-player has permission "skript.smashbros": | |
27 | message "{@P} &e%command sender%&b: Fall Damage disabled!" to loop-player | |
28 | else: | |
29 | message "{@P} Fall Damage disabled!" to loop-player | |
30 | else if arg 1 is equal to "home": | |
31 | if {Smash.Home} is true: | |
32 | delete {Smash.Home} | |
33 | loop all players: | |
34 | loop-player has permission "skript.smashbros": | |
35 | message "{@P} &e%command sender%&b: Home Run Bat disabled!" to loop-player | |
36 | else: | |
37 | message "{@P} Home Run Bat disabled!" to loop-player | |
38 | else: | |
39 | set {Smash.Home} to true | |
40 | loop all players: | |
41 | loop-player has permission "skript.smashbros": | |
42 | message "{@P} &e%command sender%&b: Home Run Bat enabled!" to loop-player | |
43 | else: | |
44 | message "{@P} Home Run Bat enabled!" to loop-player | |
45 | else if arg 1 is equal to "set": | |
46 | # Makes sure every team is a To7 | |
47 | if {Teams::*} is not set: | |
48 | message "{@P} There are no teams!" | |
49 | stop trigger | |
50 | else: | |
51 | loop {Teams::*}: | |
52 | if (size of ({Team.%loop-value%::*})) is not equal to 7: | |
53 | message "{@P} &eTeam %loop-value% &bdoes not have 7 people!" | |
54 | stop trigger | |
55 | ||
56 | # Removes all effects from previous superheroes | |
57 | loop {Super.SonicOfTeam::*}: | |
58 | set {_SonicPlayer} to ("%loop-value%" parsed as offlineplayer) | |
59 | if {_Soniclayer} is online: | |
60 | remove speed from {_SonicPlayer} | |
61 | remove jump boost from {_SonicPlayer} | |
62 | else: | |
63 | set {Sonic.Schedule.RemoveEffect::%loop-value%} to true | |
64 | loop {Super.KirbyOfTeam::*}: | |
65 | set {_KirbyPlayer} to ("%loop-value%" parsed as offlineplayer) | |
66 | if {_KirbyPlayer} is online: | |
67 | remove jump boost from {_KirbyPlayer} | |
68 | remove speed from {_KirbyPlayer} | |
69 | else: | |
70 | set {Kirby.Schedule.RemoveEffect::%loop-value%} to true | |
71 | loop {Super.PitOfTeam::*}: | |
72 | set {_PitPlayer} to ("%loop-value%" parsed as offlineplayer) | |
73 | if {_PitPlayer} is online: | |
74 | remove jump boost from {_PitPlayer} | |
75 | else: | |
76 | set {Pit.Schedule.RemoveEffect::%loop-value%} to true | |
77 | loop {Super.MetaOfTeam::*}: | |
78 | set {_MetaPlayer} to ("%loop-value%" parsed as offlineplayer) | |
79 | if {_MetaPlayer} is online: | |
80 | remove jump boost from {_MetaPlayer} | |
81 | remove speed from {_MetaPlayer} | |
82 | remove haste from {_MetaPlayer} | |
83 | else: | |
84 | set {Meta.Schedule.RemoveEffect::%loop-value%} to true | |
85 | loop {Super.KongOfTeam::*}: | |
86 | set {_KongPlayer} to ("%loop-value%" parsed as offlineplayer) | |
87 | if {_KongPlayer} is online: | |
88 | remove strength from {_KongPlayer} | |
89 | remove jump boost from {_KongPlayer} | |
90 | set maximum health of {_KongPlayer} to 10 | |
91 | set health of {_KongPlayer} to 10 | |
92 | remove slowness from {_KongPlayer} | |
93 | else: | |
94 | set {Kong.Schedule.RemoveEffect::%loop-value%} to true | |
95 | loop {Super.PikaOfTeam::*}: | |
96 | set {_PikaPlayer} to ("%loop-value%" parsed as offlineplayer) | |
97 | if {_PikaPlayer} is online: | |
98 | remove haste from {_PikaPlayer} | |
99 | remove speed from {_PikaPlayer} | |
100 | remove weakness from {_PikaPlayer} | |
101 | else: | |
102 | set {Pika.Schedule.RemoveEffect::%loop-value%} to true | |
103 | loop {Super.LinkOfTeam::*}: | |
104 | set {_LinkPlayer} to ("%loop-value%" parsed as offlineplayer) | |
105 | if {_LinkPlayer} is online: | |
106 | remove resistance from {_LinkPlayer} | |
107 | else: | |
108 | set {Link.Schedule.RemoveEffect::%loop-value%} to true | |
109 | ||
110 | # Deletes the superheroes completely | |
111 | delete {Super.SonicOfTeam::*} | |
112 | delete {Super.IsSonic::*} | |
113 | delete {Super.KirbyOfTeam::*} | |
114 | delete {Super.IsKirby::*} | |
115 | delete {Super.PitOfTeam::*} | |
116 | delete {Super.IsPit::*} | |
117 | delete {Super.MetaOfTeam::*} | |
118 | delete {Super.IsMeta::*} | |
119 | delete {Super.KongOfTeam::*} | |
120 | delete {Super.IsKong::*} | |
121 | delete {Super.PikaOfTeam::*} | |
122 | delete {Super.IsPika::*} | |
123 | delete {Super.LinkOfTeam::*} | |
124 | delete {Super.IsLink::*} | |
125 | ||
126 | # Sets new superheroes | |
127 | loop all players: | |
128 | loop-player has permission "skript.smashbros": | |
129 | message "{@P} &e%command sender%&b: Setting Fighters!" to loop-player | |
130 | else: | |
131 | message "{@P} Setting Fighters!" to loop-player | |
132 | loop {Teams::*}: | |
133 | # Creates replicas of team, so it can choose different superheroes | |
134 | set {_Temp.%loop-value%::*} to {Team.%loop-value%::*} | |
135 | ||
136 | # Picks a random Sonic | |
137 | set {_Sonic} to (random element out of {_Temp.%loop-value%::*}) | |
138 | set {Super.IsSonic::%{_Sonic}%} to loop-value | |
139 | set {Super.SonicOfTeam::%loop-value%} to {_Sonic} | |
140 | remove {_Sonic} from {_Temp.%loop-value%::*} | |
141 | ||
142 | # Picks a random Kirby | |
143 | set {_Kirby} to (random element out of {_Temp.%loop-value%::*}) | |
144 | set {Super.IsKirby::%{_Kirby}%} to loop-value | |
145 | set {Super.KirbyOfTeam::%loop-value%} to {_Kirby} | |
146 | remove {_Kirby} from {_Temp.%loop-value%::*} | |
147 | ||
148 | # Picks a random Pit | |
149 | set {_Pit} to (random element out of {_Temp.%loop-value%::*}) | |
150 | set {Super.IsPit::%{_Pit}%} to loop-value | |
151 | set {Super.PitOfTeam::%loop-value%} to {_Pit} | |
152 | remove {_Pit} from {_Temp.%loop-value%::*} | |
153 | ||
154 | # Picks a random Meta Knight | |
155 | set {_Meta} to (random element out of {_Temp.%loop-value%::*}) | |
156 | set {Super.IsMeta::%{_Meta}%} to loop-value | |
157 | set {Super.MetaOfTeam::%loop-value%} to {_Meta} | |
158 | remove {_Meta} from {_Temp.%loop-value%::*} | |
159 | ||
160 | # Picks a random Donkey Kong | |
161 | set {_Kong} to (random element out of {_Temp.%loop-value%::*}) | |
162 | set {Super.IsKong::%{_Kong}%} to loop-value | |
163 | set {Super.KongOfTeam::%loop-value%} to {_Kong} | |
164 | remove {_Kong} from {_Temp.%loop-value%::*} | |
165 | ||
166 | # Picks a random Pikachu | |
167 | set {_Pika} to (random element out of {_Temp.%loop-value%::*}) | |
168 | set {Super.IsPika::%{_Pika}%} to loop-value | |
169 | set {Super.PikaOfTeam::%loop-value%} to {_Pika} | |
170 | remove {_Pika} from {_Temp.%loop-value%::*} | |
171 | ||
172 | # Picks a random Link | |
173 | set {_Link} to (random element out of {_Temp.%loop-value%::*}) | |
174 | set {Super.IsLink::%{_Link}%} to loop-value | |
175 | set {Super.LinkOfTeam::%loop-value%} to {_Link} | |
176 | remove {_Link} from {_Temp.%loop-value%::*} | |
177 | ||
178 | # Messages the team their heroes | |
179 | loop {Team.%loop-value%::*}: | |
180 | set {_Player} to ("%loop-value-2%" parsed as offlineplayer) | |
181 | if {_Player} is online: | |
182 | message "{@P} Sonic: &e%{_Sonic}%" to {_Player} | |
183 | message "{@P} Kirby: &e%{_Kirby}%" to {_Player} | |
184 | message "{@P} Pit: &e%{_Pit}%" to {_Player} | |
185 | message "{@P} Meta Knight: &e%{_Meta}%" to {_Player} | |
186 | message "{@P} Donkey Kong: &e%{_Kong}%" to {_Player} | |
187 | message "{@P} Pikachu: &e%{_Pika}%" to {_Player} | |
188 | message "{@P} Link: &e%{_Link}%" to {_Player} | |
189 | ||
190 | else if arg 1 is equal to "apply": | |
191 | loop {Teams::*}: | |
192 | set {_Sonic} to ({Super.SonicOfTeam::%loop-value%} parsed as offlineplayer) | |
193 | set {_Kirby} to ({Super.KirbyOfTeam::%loop-value%} parsed as offlineplayer) | |
194 | set {_Pit} to ({Super.PitOfTeam::%loop-value%} parsed as offlineplayer) | |
195 | set {_Meta} to ({Super.MetaOfTeam::%loop-value%} parsed as offlineplayer) | |
196 | set {_Kong} to ({Super.KongOfTeam::%loop-value%} parsed as offlineplayer) | |
197 | set {_Pika} to ({Super.PikaOfTeam::%loop-value%} parsed as offlineplayer) | |
198 | set {_Link} to ({Super.LinkOfTeam::%loop-value%} parsed as offlineplayer) | |
199 | ||
200 | if {_Sonic} is online: | |
201 | apply speed 4 to {_Sonic} for 999 days | |
202 | apply jump boost 1 to {_Sonic} for 999 days | |
203 | else: | |
204 | set {Super.Speed.Scheduler::%{_Sonic}%} to true | |
205 | ||
206 | if {_Kirby} is online: | |
207 | apply speed 1 to {_Kirby} for 999 days | |
208 | apply jump boost 4 to {_Kirby} for 999 days | |
209 | give 1 glowstone named "<gold>Power Star" to {_Kirby} | |
210 | else: | |
211 | set {Super.Kirby.Scheduler::%{_Kirby}%} to true | |
212 | ||
213 | if {_Pit} is online: | |
214 | apply jump boost 3 to {_Pit} for 999 days | |
215 | give a bow of power 3 and punch 2 and infinity 1 named "<gold>Bow of Light" to {_Pit} | |
216 | give an arrow named "<gold>Arrow of Light" to {_Pit} | |
217 | else: | |
218 | set {Super.Pit.Scheduler::%{_Pit}%} to true | |
219 | ||
220 | if {_Meta} is online: | |
221 | apply speed 1 to {_Meta} for 999 days | |
222 | apply jump boost 2 to {_Meta} for 999 days | |
223 | apply haste 2 to {_Meta} for 999 days | |
224 | give a gold sword of unbreaking 3 and sharpness 1 and knockback 2 named "<black>Galaxia" to {_Meta} | |
225 | else: | |
226 | set {Super.Meta.Scheduler::%{_Meta}%} to true | |
227 | ||
228 | if {_Kong} is online: | |
229 | apply strength 1 to {_Kong} for 999 days | |
230 | apply jump boost 2 to {_Kong} for 999 days | |
231 | apply slowness 3 to {_Kong} for 999 days | |
232 | set maximum health of {_Kong} to 15 | |
233 | set health of {_Kong} to 15 | |
234 | else: | |
235 | set {Super.Kong.Scheduler::%{_Kong}%} to true | |
236 | ||
237 | if {_Pika} is online: | |
238 | apply haste 3 to {_Pika} for 999 days | |
239 | apply speed 3 to {_Pika} for 999 days | |
240 | apply weakness 1 to {_Pika} for 999 days | |
241 | else: | |
242 | set {Super.Pika.Scheduler::%{_Pika}%} to true | |
243 | ||
244 | if {_Link} is online: | |
245 | apply resistance 2 to {_Link} for 999 days | |
246 | give an iron sword of sharpness 2 named "<white>The Wind Waker" to {_Link} | |
247 | else: | |
248 | set {Super.Link.Scheduler::%{_Link}%} to true | |
249 | ||
250 | loop all players: | |
251 | loop-player has permission "skript.smashbros": | |
252 | message "{@P} &e%command sender%&b: Applied Powers!" to loop-player | |
253 | else: | |
254 | message "{@P} Applied Powers!" to loop-player | |
255 | else if arg 1 is equal to "reset": | |
256 | # Removes all effects from previous superheroes | |
257 | loop {Super.SonicOfTeam::*}: | |
258 | set {_SonicPlayer} to ("%loop-value%" parsed as offlineplayer) | |
259 | if {_SonicPlayer} is online: | |
260 | remove speed from {_SonicPlayer} | |
261 | remove jump boost from {_SonicPlayer} | |
262 | else: | |
263 | set {Sonic.Schedule.RemoveEffect::%loop-value%} to true | |
264 | loop {Super.KirbyOfTeam::*}: | |
265 | set {_KirbyPlayer} to ("%loop-value%" parsed as offlineplayer) | |
266 | if {_KirbyPlayer} is online: | |
267 | remove speed from {_KirbyPlayer} | |
268 | remove jump boost from {_KirbyPlayer} | |
269 | else: | |
270 | set {Kirby.Schedule.RemoveEffect::%loop-value%} to true | |
271 | loop {Super.PitOfTeam::*}: | |
272 | set {_PitPlayer} to ("%loop-value%" parsed as offlineplayer) | |
273 | if {_PitPlayer} is online: | |
274 | remove jump boost from {_PitPlayer} | |
275 | else: | |
276 | set {Pit.Schedule.RemoveEffect::%loop-value%} to true | |
277 | loop {Super.MetaOfTeam::*}: | |
278 | set {_MetaPlayer} to ("%loop-value%" parsed as offlineplayer) | |
279 | if {_MetaPlayer} is online: | |
280 | remove jump boost from {_MetaPlayer} | |
281 | remove speed from {_MetaPlayer} | |
282 | remove haste from {_MetaPlayer} | |
283 | else: | |
284 | set {Meta.Schedule.RemoveEffect::%loop-value%} to true | |
285 | loop {Super.KongOfTeam::*}: | |
286 | set {_KongPlayer} to ("%loop-value%" parsed as offlineplayer) | |
287 | if {_KongPlayer} is online: | |
288 | remove strength from {_KongPlayer} | |
289 | remove jump boost from {_KongPlayer} | |
290 | set maximum health of {_KongPlayer} to 10 | |
291 | set health of {_KongPlayer} to 10 | |
292 | remove slowness from {_KongPlayer} | |
293 | else: | |
294 | set {Kong.Schedule.RemoveEffect::%loop-value%} to true | |
295 | loop {Super.PikaOfTeam::*}: | |
296 | set {_PikaPlayer} to ("%loop-value%" parsed as offlineplayer) | |
297 | if {_PikaPlayer} is online: | |
298 | remove haste from {_PikaPlayer} | |
299 | remove weakness from {_PikaPlayer} | |
300 | remove speed from {_PikaPlayer} | |
301 | else: | |
302 | set {Pika.Schedule.RemoveEffect::%loop-value%} to true | |
303 | ||
304 | loop {Super.LinkOfTeam::*}: | |
305 | set {_LinkPlayer} to ("%loop-value%" parsed as offlineplayer) | |
306 | if {_LinkPlayer} is online: | |
307 | remove resistance from {_LinkPlayer} | |
308 | else: | |
309 | set {Link.Schedule.RemoveEffect::%loop-value%} to true | |
310 | loop all players: | |
311 | loop-player has permission "skript.smashbros": | |
312 | message "{@P} &e%command sender%&b: Reset Fighters!" to loop-player | |
313 | else: | |
314 | message "{@P} Reset Fighters!" to loop-player | |
315 | execute console command "/effect %loop-player% reset" | |
316 | else: | |
317 | message "{@P} {@IS}" | |
318 | ||
319 | on death of player: | |
320 | {Smash.Fall} is true | |
321 | execute console command "/effect %victim% clear" | |
322 | set maximum health of player to 10 | |
323 | ||
324 | ||
325 | on login: | |
326 | if {Super.Sonic.Scheduler::%player%} is true: | |
327 | apply speed 4 to the player for 999 days | |
328 | apply jump boost 1 to the player for 999 days | |
329 | delete {Super.Sonic.Scheduler::%player%} | |
330 | else if {Super.Kirby.Scheduler::%player%} is true: | |
331 | apply speed 1 to the player for 999 days | |
332 | apply jump boost 4 to the player for 999 days | |
333 | give 1 glowstone named "<gold>Power Star" to the player | |
334 | delete {Super.Kirby.Scheduler::%player%} | |
335 | else if {Super.Pit.Scheduler::%player%} is true: | |
336 | apply jump boost 3 to the player for 999 days | |
337 | give a bow of power 3 and punch 2 and infinity 1 named "<gold>Bow of Light" to the player | |
338 | give an arrow named "<gold>Arrow of Light" to the player | |
339 | delete {Super.Pit.Scheduler::%player%} | |
340 | else if {Super.Meta.Scheduler::%player%} is true: | |
341 | apply jump boost 2 to player for 999 days | |
342 | apply speed 1 to player for 999 days | |
343 | apply haste 2 to player for 999 days | |
344 | give a gold sword of unbreaking 3 and sharpness 1 and knockback 2 named "<black>Galaxia" to the player | |
345 | delete {Super.Meta.Scheduler::%player%} | |
346 | else if {Super.Kong.Scheduler::%player%} is true: | |
347 | apply strength 1 to player for 999 days | |
348 | apply slowness 3 to player for 999 days | |
349 | apply jump boost 2 to player for 999 days | |
350 | set maximum health of player to 15 | |
351 | set health of player to 15 | |
352 | delete {Super.Kong.Scheduler::%player%} | |
353 | else if {Super.Pika.Scheduler::%player%} is true: | |
354 | apply haste 3 to the player for 999 days | |
355 | apply speed 3 to the player for 999 days | |
356 | apply weakness 1 to the player for 999 days | |
357 | delete {Super.Pika.Scheduler::%player%} | |
358 | else if {Super.Link.Scheduler::%player%} is true: | |
359 | apply resistance 2 to the player for 999 days | |
360 | give an iron sword of sharpness 2 named "<white>The Wind Waker" to {_Link} | |
361 | delete {Super.Link.Scheduler::%player%} | |
362 | ||
363 | on login: | |
364 | if {Sonic.Schedule.RemoveEffect::%player%} is true: | |
365 | remove speed from the player | |
366 | remove jump boost from the player | |
367 | delete {Sonic.Schedule.RemoveEffect::%player%} | |
368 | if {Kirby.Schedule.RemoveEffect::%player%} is true: | |
369 | remove speed from the player | |
370 | remove jump boost from the player | |
371 | delete {.Schedule.RemoveEffect::%player%} | |
372 | if {Pit.Schedule.RemoveEffect::%player%} is true: | |
373 | remove jump boost from the player | |
374 | delete {Pit.Schedule.RemoveEffect::%player%} | |
375 | if {Meta.Schedule.RemoveEffect::%player%} is true: | |
376 | remove jump boost from the player | |
377 | remove speed from the player | |
378 | remove haste from the player | |
379 | delete {Meta.Schedule.RemoveEffect::%player%} | |
380 | if {Kong.Schedule.RemoveEffect::%player%} is true: | |
381 | remove slowness from the player | |
382 | remove jump boost from the player | |
383 | remove strength from the player | |
384 | set maximum health of player to 10 | |
385 | set health of player to 10 | |
386 | delete {Kong.Schedule.RemoveEffect::%player%} | |
387 | if {Pika.Schedule.RemoveEffect::%player%} is true: | |
388 | remove speed from the player | |
389 | remove haste from the player | |
390 | remove weakness from the player | |
391 | delete {Pika.Schedule.RemoveEffect::%player%} | |
392 | if {Link.Schedule.RemoveEffect::%player%} is true: | |
393 | remove resistance from the player | |
394 | delete {Link.Schedule.RemoveEffect::%player%} | |
395 | ||
396 | on damage: | |
397 | {Smash.Fall} is true | |
398 | damage cause is fall | |
399 | cancel the event | |
400 | ||
401 | on consume of milk bucket: | |
402 | {Smash.Fall} is true | |
403 | cancel the event | |
404 | remove milk bucket from inventory of player | |
405 | give player 1 milk bucket | |
406 | ||
407 | on death of a player: | |
408 | if {Smash.Fall} is true: | |
409 | chance of 5% | |
410 | drop 1 bow of power 4 and punch 1 named "<purple>Ray Gun" at the player | |
411 | ||
412 | on death of a player: | |
413 | if {Smash.Fall} is true: | |
414 | chance of 20% | |
415 | drop 1 creeper spawn egg named "<green> Creeper Pokéball" at the player | |
416 | ||
417 | on death of a player: | |
418 | if {Smash.Fall} is true: | |
419 | chance of 20% | |
420 | drop 1 zombie spawn egg named "<yellow>Zombie Pokéball" at the player | |
421 | ||
422 | on death of a player: | |
423 | if {Smash.Fall} is true: | |
424 | chance of 20% | |
425 | drop 1 skeleton spawn egg named "<gray>Skeleton Pokéball" at the player | |
426 | ||
427 | on death of a player: | |
428 | if {Smash.Fall} is true: | |
429 | chance of 20% | |
430 | drop 1 spider spawn egg named "<brown>Spider Pokeball" at the player | |
431 | ||
432 | on rightclick with a diamond hoe: | |
433 | {Smash.Fall} is true | |
434 | apply invisibility to the player for 3 minutes | |
435 | remove diamond hoe from the inventory of the player | |
436 | message "{@P} &7Woosh!" | |
437 | ||
438 | on death of a player: | |
439 | {Smash.Fall} is true | |
440 | chance of 15% | |
441 | drop 1 diamond hoe of lure 3 named "<orange>Cloak of Invisibility" at the player | |
442 | ||
443 | on craft of diamond hoe: | |
444 | {Smash.Fall} is true | |
445 | cancel event | |
446 | message "{@P} &7You can't craft Invisibility Cloaks!" | |
447 | ||
448 | on death of a player: | |
449 | {Smash.Fall} is true | |
450 | chance of 10% | |
451 | drop 1 wooden hoe of knockback 100 named "<blue>The Hammer" | |
452 | ||
453 | on death of a player: | |
454 | {Smash.Home} is true | |
455 | chance of 0.2% | |
456 | drop 1 stone hoe of sharpness 100 named "<black>Home Run Bat" | |
457 | ||
458 | on craft of stone hoe: | |
459 | {Smash.Home} is true | |
460 | cancel event | |
461 | message "{@P} &7You can't craft a Home Run Bat!" | |
462 | ||
463 | on craft of wooden hoe: | |
464 | {Smash.Fall} is true | |
465 | cancel event | |
466 | message "{@P} &7You can't craft The Hammer!" | |
467 | ||
468 | on leftclick with a wooden hoe: | |
469 | {Smash.Fall} is true | |
470 | remove wooden hoe from the inventory of the player | |
471 | message "{@P} &7The Hammer has Broken!" | |
472 | ||
473 | on leftclick with a stone hoe: | |
474 | {Smash.Home} is true | |
475 | remove stone hoe from the inventory of the player | |
476 | message "{@P} &7The Home Run Bat has Broken!" | |
477 | ||
478 | on rightclick with glowstone: | |
479 | {Smash.Fall} is true | |
480 | push the player upwards at speed 5 | |
481 | apply resistance 100 to the player for 5 seconds | |
482 | remove glowstone from the inventory of the player | |
483 | wait 4 seconds | |
484 | wait 2 ticks | |
485 | create an explosion of force 10 at the player | |
486 | ||
487 | on craft of glowstone: | |
488 | {Smash.Fall} is true | |
489 | cancel the event | |
490 | message "{@P} You cannot craft Power Stars!" | |
491 | ||
492 | on mine of glowstone: | |
493 | {Smash.Fall} is true | |
494 | cancel the event | |
495 | message "{@P} You cannot mine Power Stars!" | |
496 | ||
497 | on place of glowstone: | |
498 | {Smash.Fall} is true | |
499 | cancel the event |