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
- #TO-DO
- #- Crafting (z tym jest problem bo nie wykrywa 64 cobblestone w okienku)
- #- Zeby dropily itemy TYLKO z nazwanego Marmuru. (bo teraz dropi z kazdego bloku, nawet "cracked stone brick" zwyklego :(
- #- Poprawa bledow
- #- Wiekszy zakres "losowania" marmuru.
- #- Sklep marmuru za pieniadze ($$$)
- #- Inne funkcje / w tym AutoAktualizacja / AutoUpdate
- #Milego korzystania! :)
- options:
- marmur: cracked stone brick
- wymagane: 576 cobblestone
- obrazenia: 10
- #Komenda na tworzenie Marmuru
- command /marmur:
- trigger:
- player has {@wymagane}:
- remove {@wymagane} from player
- clear {marmur.%player%}
- wait a tick
- set {marmur.%player%} to a random integer from 1 to 3
- if {marmur.%player%} is 1:
- send "&aWylosowales 1 sztuke marmuru!"
- give a 98:2 of thorns 10 named "&7&lMarmur" to the player
- if {marmur.%player%} is 2:
- send "&aWylosowales 2 sztuki marmuru!"
- give a 98:2 of thorns 10 named "&7&lMarmur" to the player
- give a 98:2 of thorns 10 named "&7&lMarmur" to the player
- if {marmur.%player%} is 3:
- send "&aWylosowales 3 sztuki marmuru!"
- give a 98:2 of thorns 10 named "&7&lMarmur" to the player
- give a 98:2 of thorns 10 named "&7&lMarmur" to the player
- give a 98:2 of thorns 10 named "&7&lMarmur" to the player
- else:
- send "&4Blad:&c Nie posiadasz 9 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*&7)"
- 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"
- #nie testowane / komenda testowa
- argument 1 is "usunall"
- clear {cobblelose::*}
- send "&6>> &7Usunieto &6cala liste &7marmuru bezpowrotnie!"
- on place of {@marmur}:
- send "&aPostawiles &7&lMarmur&a!" 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
Advertisement
Add Comment
Please, Sign In to add comment