Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Skrypt na Marmur (Cobblex/Cobbley)
- #Niektore skladnie naleza do Lizak3 - Udzielil mi praw do tego kodu na pw :)
- #Reszta kodu nalezy do mnie.
- #Edycja kodu dozwolona do celow wlasnych
- options:
- marmur: cracked brick
- wymagane_cmd: 1728 cobblestone
- obrazenia: 10
- enchant: thorns 10
- nazwa: "&7&lMarmur"
- wiadomosc_polozenie: "&aPostawiles &7&lMarmur&a!"
- sk: Marmur
- #wersja
- version: 1.3
- #Sk = nazwa skryptu, wpisz tu swoja nazwe skryptu (np. nazwa.sk) (bez .sk)
- on load:
- set {_nazwa} to "Marmur"
- Recipe.new{ {_nazwa} }
- {_nazwa}.Recipe.registerIngredient{1, 64 cobblestone}
- {_nazwa}.Recipe.registerIngredient{2, 64 cobblestone}
- {_nazwa}.Recipe.registerIngredient{3, 64 cobblestone}
- {_nazwa}.Recipe.registerIngredient{4, 64 cobblestone}
- {_nazwa}.Recipe.registerIngredient{5, 64 cobblestone}
- {_nazwa}.Recipe.registerIngredient{6, 64 cobblestone}
- {_nazwa}.Recipe.registerIngredient{7, 64 cobblestone}
- {_nazwa}.Recipe.registerIngredient{8, 64 cobblestone}
- {_nazwa}.Recipe.registerIngredient{9, 64 cobblestone}
- {_nazwa}.Recipe.registerResult{1 cracked brick of thorns 10 named "&7&lMarmur"}
- {_nazwa}.Recipe.register
- #Komenda na tworzenie Marmuru
- command /marmur:
- permission: marmur.use.command
- trigger:
- player has {@wymagane_cmd}:
- remove {@wymagane_cmd} from player
- clear {marmur.%player%}
- wait a tick
- set {marmur.%player%} to a random integer from 1 to 6
- if {marmur.%player%} is 1:
- send "&aWylosowales 1 sztuke marmuru!"
- give a {@marmur} of {@enchant} named {@nazwa} to the player
- if {marmur.%player%} is 2:
- send "&aWylosowales 2 sztuki marmuru!"
- give a {@marmur} of {@enchant} named {@nazwa} to the player
- give a {@marmur} of {@enchant} named {@nazwa} to the player
- if {marmur.%player%} is 3:
- send "&aWylosowales 3 sztuki marmuru!"
- give a {@marmur} of {@enchant} named {@nazwa} to the player
- give a {@marmur} of {@enchant} named {@nazwa} to the player
- give a {@marmur} of {@enchant} named {@nazwa} to the player
- if {marmur.%player%} is 4:
- send "&aWylosowales 4 sztuki marmuru!"
- give a {@marmur} of {@enchant} named {@nazwa} to the player
- give a {@marmur} of {@enchant} named {@nazwa} to the player
- give a {@marmur} of {@enchant} named {@nazwa} to the player
- give a {@marmur} of {@enchant} named {@nazwa} to the player
- else:
- send "&4Blad:&c Nie posiadasz 27 stakow cobblestone"
- #Panel admina
- command /marmuradm [<text="pomoc">] [<items>]:
- permission: marmur.admin
- trigger:
- argument 1 is not "pomoc", "dodaj", "usun" or "usunall":
- send "&4Blad: &cBrak takiej komendy, lub zla nazwa przedmiotu!"
- stop
- argument 1 is "pomoc":
- send "&7 >> &6Marmur Admin Panel &7<< "
- send "&6/marmuradm dodaj <item> - &7Dodanie nowego itemu do listy"
- send "&6/marmuradm usun <item> - &7Usuwanie itemu z listy"
- send "&6/marmuradm usunall - &7Usuwa wszystkie itemy z listy &7(&6*TEST*&"
- send "&7Lista:&c %{cobblelose::*}%"
- send "&7Skrypt stworzony przez &6AdamGrzegorz &7:)"
- argument 1 is "dodaj":
- if argument 2 is not set:
- send "&4Blad: &cWpisz nazwe przedmiotu!"
- else:
- add argument 2 to {cobblelose::*}
- send "&6>> &7Dodano &6'%arg 2%'&7 do z listy marmuru"
- argument 1 is "usun":
- if argument 2 is not set:
- send "&4Blad: &cWpisz nazwe przedmiotu!"
- else:
- remove argument 2 from {cobblelose::*}
- send "&6>> &7Usunieto &6'%arg 2%' &7z listy marmuru"
- argument 1 is "usunall"
- clear {cobblelose::*}
- send "&6>> &7Usunieto &6cala liste &7marmuru bezpowrotnie!"
- on place of {@marmur}:
- send {@wiadomosc_polozenie} to player
- on break of {@marmur}:
- cancel event
- set event-block to air
- damage player's tool by {@obrazenia}
- drop a random item of {cobblelose::*} at event-block
- command /marmurdrop:
- permission: marmur.drop
- trigger:
- send "&6Lista dropu z marmuru:"
- send "&7%{cobblelose::*}%"
Advertisement
Add Comment
Please, Sign In to add comment