# # # # ### # ##### # ## ## # # # ## # # # # # # # # # # # # # ### ### # # # # # # # # # # # # # # ## # ## # # # on load: clear {drop::*} {luckyblockkod} = 0 # # Tutaj nizej mozesz dodac/zmienic/usunac drop jaki chcesz miec z lucky blocka. # set {Lucky::drop::*} to iron ingot and gold ingot and obsidian and emerald and diamond # on place of sponge: if name of player's tool is "&6&lLucky Block": set {_luckydrop} to random element of {Lucky::drop::*} drop {_luckydrop} at event-block set event-block to air # # Ponizej mozesz zmienic wiadomosc dotyczaca tego co wylosowales. # send action bar "%{prefix}% &b&lWylosowales/as &a&l%{_luckydrop}%&b&l!" to player # # Tutaj mienisz muzyczke prz otwieraniu luckyblocka. # play sound "entity.experience_orb.pickup" with volume 10.0 to the player show mob spawner flames at the event-block to the player # # Tutaj znowu mozesz dodac/zmienic/usunac drop, lecz tutaj dodajesz dodatkowy drop który może być w procentach. # Jezeli nie chcesz sie z tym bawic po prostu go usun. # chance of 10%: drop 3 iron ingot chance of 10%: drop 2 gold ingot chance of 0.5%: drop 1 sponge named "&6&lLucky Block" with lore "&7&l>> &b&lPostaw &6&lLucky Blocka &b&laby go otworzyć! &7&l<<" # # Poniżej możesz zmienić np. prefixy, nazwe help gui albo itemy w help gui. # options: prefix: &9&l[&b&lLuckyBlocki&9&l] &9&l>> errorprefix: &9&l[&b&lError&9&l] &9&l>> helpprefix: &9&l[&b&lHelp&9&l] &9&l>> luckyeq: &6&lLucky Block Help Gui Gui-BackGround: gray glass pane named "&7 " Glowa-1: MHF_Chicken 1-name: &2&lLucky Block dla calego serwera! 1-lore: &6&lPPM Aby zobaczyc komende! Glowa-2: MHF_Cake 2-name: &3&lLucky Block dla danego gracza 2-lore: &6&lPPM Aby zobaczyc komende! # # Tutaj nizej znajduje sie komenda na lucky blocka i na komende help! # command /luckyblock [] [] []: permission: luckyblock permission message: %{errorprefix}% &b&lNie masz &4&ldostepu &b&ldo tej komendy. aliases: lb, lucky trigger: if arg-1 is not set: send "%{errorprefix}% &b&lNie znana komenda wpisz &6&l/luckyblock help &b&lpo pomoc!" stop if arg-1 is "help": open chest with 1 rows named "{@luckyeq}" to player set player's current inventory's slot (integers between 0 and 8) to {@Gui-BackGround} set player's current inventory's slot 3 to ("{@Glowa-1}" parsed as offlineplayer)'s skull named "{@1-name}" with lore " {@1-lore}" set player's current inventory's slot 5 to ("{@Glowa-2}" parsed as offlineplayer)'s skull named "{@2-name}" with lore " {@2-lore}" stop if arg-1 is "give": if arg-2 is not set: send "%{errorprefix}% &b&lPodaj gracza!" to player stop if arg-2 is offline: send "%{errorprefix}% &b&lGracz %arg-2% jest offline!" to player if arg-2 is online: if arg-3 is not set: send "%{errorprefix}% &b&lNie wybrałeś ilości &6&lLucky Blocków&b&l!" to player stop if arg-3 is 1: send "%{prefix}% &b&lOtrzymales/as 1 &6&lLucky Blocka&b&l!" to arg-2 send "%{prefix}% &b&lDales graczu %arg-2% &b&l1 &6&lLucky Blocka&b&l!" to player add sponge named "&6&lLucky Block" with lore "&7&l>> &b&lPostaw &6&lLucky Blocka &b&laby go otworzyć! &7&l<<" to arg-2 stop else: send "%{prefix}% &b&lOtrzymales/as %arg-3% &6&lLucky Blockow&b&l!" to arg-2 send "%{prefix}% &b&lDales graczu %arg-2% &6&lLucky Blockow&b&l!" to player loop arg-3 times: add sponge named "&6&lLucky Block" with lore "&7&l>> &b&lPostaw &6&lLucky Blocka &b&laby go otworzyć! &7&l<<" to arg-2 stop if arg-1 is "give all": broadcast "%{prefix}% &b&lZa 30 sek kazdy otrzyma &6&lLucky Blocka&b&l!" broadcast "&4&lTylko pamietaj! Musisz miec przynajmiej jedno wolne miejsce w EQ!" wait 20 seconds broadcast "%{prefix}% &b&lZa 10 sek kazdy otrzyma &6&lLucky Blocka&b&l!" wait 5 seconds broadcast "%{prefix}% &b&lZa 5 sek kazdy otrzyma &6&lLucky Blocka&b&l!" wait 5 seconds broadcast "%{prefix}% &b&lKazdy otrzymal &6&lLucky Blocka&b&l!" loop all players: add 1 sponge named "&6&lLucky Block" with lore "&7&l>> &b&lPostaw &6&lLucky Blocka &b&laby go otworzyć! &7&l<<" to loop-player stop if arg-1 is "kod": loop 10 times: set {konkurs.znak%loop-number%} to 0 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 set {konkurs.kod} to "%{konkurs.znak1}%%{konkurs.znak2}%%{konkurs.znak3}%%{konkurs.znak4}%%{konkurs.znak5}%%{konkurs.znak6}%%{konkurs.znak7}%%{konkurs.znak8}%%{konkurs.znak9}%%{konkurs.znak10}%" broadcast "%{prefix}% &b&lKto pierwszy wpisze kod na chacie wygrywa &6&lLucky Blocka&b&l!" broadcast "&4&lTylko pamietaj! Musisz miec przynajmiej jedno wolne miejsce w EQ!" set {luckyblockkod} to 1 broadcast "%{prefix}% &b&lKod to &6&l%{konkurs.kod}%&b&l!" else: send "%{errorprefix}% &b&lNie znana komenda wpisz &6&l/luckyblock help &b&lpo pomoc!" stop # every 60 minutes: loop 10 times: set {konkurs.znak%loop-number%} to 0 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 set {konkurs.kod} to "%{konkurs.znak1}%%{konkurs.znak2}%%{konkurs.znak3}%%{konkurs.znak4}%%{konkurs.znak5}%%{konkurs.znak6}%%{konkurs.znak7}%%{konkurs.znak8}%%{konkurs.znak9}%%{konkurs.znak10}%" broadcast "%{prefix}% &b&lKto pierwszy wpisze kod na chacie wygrywa &6&lLucky Blocka&b&l!" broadcast "&4&lTylko pamietaj! Musisz miec przynajmiej jedno wolne miejsce w EQ!" set {luckyblockkod} to 1 broadcast "%{prefix}% &b&lKod to &6&l%{konkurs.kod}%&b&l!" # on chat: if {luckyblockkod} is 1: if message contains "%{konkurs.kod}%": cancel event set {luckyblockkod} to 0 broadcast "%{prefix}% &b&lGracz %player% wpisal jako pierwszy kod i wygral &6&lLucky Blocka&b&l!" add 1 sponge named "&6&lLucky Block" with lore "&7&l>> &b&lPostaw &6&lLucky Blocka &b&laby go otworzyć! &7&l<<" to player on inventory click: if event-inventory's display name contains "{@luckyeq}": if clicked slot is 3: send "%{helpprefix}% &b&lWpisz ponizsza komende aby dac calemu serwerowi &6&lLucky Blocka&b&l!" to player send "&6&l/luckyblock give all" to player cancel event close player's inventory stop if clicked slot is 5: send "%{helpprefix}% &b&lWpisz ponizsza komende aby dac danemu graczu &6&lLucky Blocka&b&l!" to player send "&6&l/luckyblock give [gracz] [ilosc]" to player cancel event close player's inventory stop else: cancel event stop