# AirDrop v. 0.1 by imxkvpi options: name: &cAirDrop &5by imxkvpi # Nazwa paczki (def. AirDrop by imxkvpi) perm: airdrop.use time: 60 # np. 1 minute / 60 seconds / 1 hour itd... time2: 3 # po ilu sekundach ma zrespic sie ender-dragon i wither (8) amount: 64 # ilosc paczek # paczka przedmiot1: dirt przedmiotpl1: &6Ziemia szansa1: 10 przedmiot2: cobblestone przedmiotpl2: &7Cobble szansa2: 10 przedmiot3: wood pickaxe with efficiency 5 and fortune 3 and unbreaking 3 przedmiotpl3: &6Drewniany Kilof z ulepszeniami szansa3: 5 przedmiot4: diamond przedmiotpl4: &bDiament szansa4: 60 przedmiot5: iron ingot przedmiotpl5: &7Zelazo szansa5: 20 przedmiot6: gravel przedmiotpl6: &7zwir szansa6: 5 przedmiot7: gold ingot przedmiotpl7: &6Zloto szansa7: 15 przedmiot8: gold pickaxe przedmiotpl8: &eZloty kilof szansa8: 19 command /airdrop: trigger: player have permission "{@perm}": spawn pig {@amount} above the player set name of last spawned pig to "{@name}" send "&3Leci paczka!" on death: victim is pig: victim's name is "{@name}": clear drops chance of {@szansa1}%: drop {@przedmiot1} at victim chance of {@szansa2}%: drop {@przedmiot2} at victim chance of {@szansa3}%: drop {@przedmiot3} at victim chance of {@szansa4}%: drop {@przedmiot4} at victim chance of {@szansa5}%: drop {@przedmiot5} at victim chance of {@szansa6}%: drop {@przedmiot6} at victim chance of {@szansa7}%: drop {@przedmiot7} at victim chance of {@szansa8}: send "&4UPS! &cZA CHWILE NA MAPIE POJAWI SIE WITHER I ENDER-DRAGON!" to all players wait {@time2} seconds spawn wither at location of victim send "&cWITHER JUZ SIE POJAWIL!" to all players set name of last spawned entity to "&3AirDrop by &dimxkvpi" spawn enderdragon at location of victim set name of last spawned enderdragon to "&3AirDrop by &dimxkvpi" stop command /checkdrop: trigger: open chest with 3 rows named "&cAirDrop" to player format slot 10 of {@przedmiot1} named "{@przedmiotpl1}" with lore "&8• &c&lSzansa: &6{@szansa1}" to be unstealable format slot 11 of {@przedmiot2} named "{@przedmiotpl2}" with lore "&8• &c&lSzansa: &6{@szansa2}" to be unstealable format slot 12 of {@przedmiot3} named "{@przedmiotpl3}" with lore "&8• &c&lSzansa: &6{@szansa3}" to be unstealable format slot 13 of {@przedmiot4} named "{@przedmiotpl4}" with lore "&8• &c&lSzansa: &6{@szansa4}" to be unstealable format slot 14 of {@przedmiot5} named "{@przedmiotpl5}" with lore "&8• &c&lSzansa: &6{@szansa5}" to be unstealable format slot 15 of {@przedmiot6} named "{@przedmiotpl6}" with lore "&8• &c&lSzansa: &6{@szansa6}" to be unstealable format slot 16 of {@przedmiot7} named "{@przedmiotpl7}" with lore "&8• &c&lSzansa: &6{@szansa7}" to be unstealable format slot 22 of {@przedmiot8} named "{@przedmiotpl8}" with lore "&8• &c&lSzansa: &6{@szansa8}" to be unstealable every {@time} seconds: loop all players: send "&3Paczka dla &6&lwszystkich" to loop-player spawn pig {@amount} above the loop-player set name of last spawned pig to "{@name}" stop