View difference between Paste ID: 16fhyWpx and euGMhqZA
SHOW: | | - or go back to the newest paste.
1
command /pinata:
2
    permission: dp.epic
3
    trigger:
4
        set {pinata} to true
5
        spawn 1 sheep
6
        set {pinata} to false
7-
        broadcast "<red><italic>ThePrisonServer <reset><gray>> <red>Pinata? Yeah! Pinatas!"
7+
        broadcast "<red><italic>ThePrisonServer <reset><gray>> <red>Pinata? Yeah! Pinatas! Goto /spawn for the pinata!"
8
        give 2 leads to player
9
on spawn of a sheep:
10-
        apply resistance 3 to entity for 999 days
10+
11-
        apply regeneration 6 to entity for 999 days 
11+
        apply resistance 4 to entity for 999 days
12
        apply regeneration 5 to entity for 999 days 
13
        apply slowness 7 to entity for 999 days
14
        set {pinata1} to true
15
on death of a sheep:
16
    {pinata1} is not true:
17
        stop trigger
18-
    set {_temp} to location of victim
18+
19-
    loop 250 times:
19+
    set {_temp} to location 3 blocks above victim
20
    loop 300 times:
21
        wait 0.05 seconds
22
        chance of 4%:
23
            drop a diamond block at {_temp}
24
        chance of 2%:
25
            drop an emerald block at {_temp}
26
        chance of 20%:
27
            drop an iron ingot at {_temp}
28
        chance of 10%:
29
            drop a diamond at {_temp}
30
        chance of 0.5%:
31
            drop a diamond sword of sharpness 2 at {_temp}
32
        chance of 0.5%:
33
            drop a diamond pick of efficiency 2 at {_temp}
34
        chance of 10%:
35
            drop steak at {_temp}