Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Name: Christmas Gifts
- # Desc: Drop prezentow z blokow oraz otwieranie ich za pomoca nozyc
- # Version: 1.4
- # Updated: 6.12.2014
- # Authors: © 2014 Makhart
- #--------------------------------------------------
- # SETTINGS
- #--------------------------------------------------
- Options:
- # Z czego maja dropic prezenty (stone, dirt, cobblestone, grass)
- # Nazwa swiata/mapy na ktorej maja dropic prezenty
- # Szansa na drop prezentu (0.3 polecane na survival/hardcore, 1-2 dla serwerow latwych)
- # Nick gracza ktorego skin glowy wyglada jak prezent (standardowo polecam CruXXx)
- blocks: stone
- worlds: sv
- chance: 0.3
- player: CruXXx
- # Powiadomienie dla gracza kiedy rozpakowywuje prezent
- # Powiadomienie dla gracza kiedy dropnie prezent z bloku
- otwarcie: &3Ciekawe co dostane..
- wydrapia: &3Hol, hol, hol! Znalazles &6prezent
- # Standardowy item ktory dropi za kazdym razem
- # (musisz wpisac profesjonalna nazwe przedmiotu lub jego ID)
- item0: cookie named "&6Swiateczne ciastko"
- # Pozostale itemy oraz ich szanse dropu
- # (musisz wpisac profesjonalna nazwe przedmiotu lub jego ID)
- # (jesli chcesz ustawic wlasna nazwe wydropionemu przedmiotowi skorzystaj ze wzoru powyzej)
- item1: 322:1
- chance1: 6
- item2: 2 340
- chance2: 8
- item3: 128 4
- chance3: 15
- item4: 2 potion:16425
- chance4: 5
- item5: 16 262
- chance5: 7
- # Dodanie pieniedzy graczowi oraz szansa na to, po otworzeniu prezentu
- money: 20
- chancemoney: 10
- # Wygranie przez gracza uprawnienia/permission oraz szansa na to, po otworzeniu prezentu
- permi: permission
- chancepermi: 0
- #--------------------------------------------------
- Variables:
- {gifts} = true
- #--------------------------------------------------
- on mine of {@blocks}:
- if world is "{@worlds}":
- if player is holding any pickaxe:
- chance of {@chance}%:
- if {gifts} is true:
- console command "give %player% 397:3 1 player:{@player} name:&cPrezent lore:&8Postaw_na_ziemii_w_bezpiecznym|&8miejscu,_a_nastepnie_kliknij_&7PPM|&8na_prezent_trzymajac_w_rece_norzyce|&8aby_zobaczyc_co_jest_w_srodku_:D|&cM&2e&cr&2r&cy_&2C&ch&2r&ci&2s&ct&2m&ca&2s"
- send "{@wydrapia}"
- stop
- else:
- stop
- on place of head:
- if player is holding player head:
- if name of player's tool is "&cPrezent":
- play raw sound "random.pop" at player with pitch 1 volume 1
- set {prezent.%location%} to location of event-block
- stop
- on rightclick on head with shears:
- if location of block is {prezent.%location%}:
- delete {prezent.%location%}
- play raw sound "mob.sheep.shear" at player with pitch 1 volume 1
- set event-block to air
- send "{@otwarcie}"
- drop {@item0}
- chance of {@chance1}%:
- drop {@item1}
- else:
- chance of {@chance2}%:
- drop {@item2}
- else:
- chance of {@chance3}%:
- drop {@item3}
- else:
- chance of {@chance4}%:
- drop {@item4}
- else:
- chance of {@chance5}%:
- drop {@item5}
- chance of {@chancemoney}%:
- console command "/eco give %player% {@money}"
- else:
- chance of {@chancepermi}%:
- console command "/pex user %player% add {@permi}"
- console command "/manuaddp %player% {@permi}"
- wait 1 second
- play raw sound "mob.villager.idle" at player with pitch 1 volume 1
- stop
- on mine of head:
- if location of block is {prezent.%location%}:
- cancel event
- set event-block to air
- delete {prezent.%location%}
- console command "give %player% 397:3 1 player:{@player} name:&cPrezent lore:&8Postaw_na_ziemii_w_bezpiecznym|&8miejscu,_a_nastepnie_kliknij_&7PPM|&8na_prezent_trzymajac_w_rece_norzyce|&8aby_zobaczyc_co_jest_w_srodku_:D|&cM&2e&cr&2r&cy_&2C&ch&2r&ci&2s&ct&2m&ca&2s"
- stop
- on explode:
- if entity is TNT or creeper:
- loop blocks in radius 10:
- if loop-block is head:
- if location of loop-block is {prezent.%location%}:
- delete {prezent.%location%}
- set loop-block to air
- command /gifts [<text>] [<text>]:
- aliases: prezenty, prezent, gift
- trigger:
- if arg 2 is not set:
- if arg 1 is set:
- if argument 1 is "off":
- if player has permission "christmasgifts.command.off" or "christmasgifts.*":
- set {gifts} to false
- broadcast "&3Drop prezentow zostal wylaczony przez &6%player%"
- stop
- else:
- send "&cNie masz uprawnien do tej komendy!"
- stop
- if argument 1 is "on":
- if player has permission "christmasgifts.command.on" or "christmasgifts.*":
- set {gifts} to true
- broadcast "&3Drop prezentow zostal wlaczony przez &6%player%"
- stop
- else:
- send "&cNie masz uprawnien do tej komendy!"
- stop
- if argument 1 is "help":
- if player has permission "christmasgifts.command.help" or "christmasgifts.*":
- send "&8=============== &cChristmas Gifts &8==============="
- send "&cM&2e&cr&2r&cy &2C&ch&2r&ci&2s&ct&2m&ca&2s"
- send "&8~Makhart"
- send "&c/prezent help &8- pokazuje komendy"
- send "&c/prezent &8- daje prezent"
- send "&c/prezent on &8- wlacza drop prezentow"
- send "&c/prezent off &8- wylacza drop prezentow"
- send "&c/prezent <nick> &8- daje prezent danemu graczowi"
- send "&c/prezent <nick <ilosc> &8- daje wybrana ilosc prezetow danemu graczowi"
- send "&8=============== &cChristmas Gifts &8==============="
- stop
- else:
- send "&cNie masz uprawnien do tej komendy!"
- stop
- if arg 1 is not "on" or "off" or "help":
- if player has permission "christmasgifts.command.give" or "christmasgifts.*":
- console command "give %arg 1% 397:3 1 player:{@player} name:&cPrezent lore:&8Postaw_na_ziemii_w_bezpiecznym|&8miejscu,_a_nastepnie_kliknij_&7PPM|&8na_prezent_trzymajac_w_rece_norzyce|&8aby_zobaczyc_co_jest_w_srodku_:D|&cM&2e&cr&2r&cy_&2C&ch&2r&ci&2s&ct&2m&ca&2s"
- send "&7Mikolaj podarowal prezent"
- stop
- else:
- send "&cNie masz uprawnien do tej komendy!"
- stop
- else:
- if player has permission "christmasgifts.command.give" or "christmasgifts.*":
- console command "give %player% 397:3 1 player:{@player} name:&cPrezent lore:&8Postaw_na_ziemii_w_bezpiecznym|&8miejscu,_a_nastepnie_kliknij_&7PPM|&8na_prezent_trzymajac_w_rece_norzyce|&8aby_zobaczyc_co_jest_w_srodku_:D|&cM&2e&cr&2r&cy_&2C&ch&2r&ci&2s&ct&2m&ca&2s"
- send "&7Mikolaj podarowal prezent"
- stop
- else:
- send "&cNie masz uprawnien do tej komendy!"
- stop
- else:
- if arg 1 is set:
- if player has permission "christmasgifts.command.give" or "christmasgifts.*":
- console command "give %arg 1% 397:3 %arg 2% player:{@player} name:&cPrezent lore:&8Postaw_na_ziemii_w_bezpiecznym|&8miejscu,_a_nastepnie_kliknij_&7PPM|&8na_prezent_trzymajac_w_rece_norzyce|&8aby_zobaczyc_co_jest_w_srodku_:D|&cM&2e&cr&2r&cy_&2C&ch&2r&ci&2s&ct&2m&ca&2s"
- send "&7Mikolaj podarowal prezent"
- stop
- else:
- send "&cNie masz uprawnien do tej komendy!"
- stop
Advertisement
Add Comment
Please, Sign In to add comment