-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRandomItems.sk
More file actions
29 lines (24 loc) · 880 Bytes
/
RandomItems.sk
File metadata and controls
29 lines (24 loc) · 880 Bytes
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
#Made By Dex
variables:
{%player%.random} = true
options:
SoundR: BLOCK_NOTE_BLOCK_PLING
SoundR-Volume: 1
SoundR-Pitch: 2
SoundRF-Pitch: -5
every 10 seconds:
loop all players:
if {%loop-player%.random} = true:
give loop-player a random element of all items
play sound "{@SoundR}" with volume {@SoundR-Volume} and pitch {@SoundR-Pitch}
wait 1 tick
command /toggle:
trigger:
if {%player%.random} = true:
set {%player%.random} to false
message "&c&lDISABLED &dYou will no longer receive a random items every 10 seconds" to player
play sound "{@SoundR}" with volume {@SoundR-Volume} and pitch {@SoundRF-Pitch}
else:
set {%player%.random} to true
message "&a&lENABLED &dYou will now receive a random item every 10 seconds" to player
play sound "{@SoundR}" with volume {@SoundR-Volume} and pitch {@SoundR-Pitch}