AdamGrzegorz

Marmur - CobbleX jak na hardcorach! Skrypt

Aug 5th, 2014
538
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 3.51 KB | None | 0 0
  1. #Skrypt na Marmur (Cobblex/Cobbley)
  2. #Niektore skladnie naleza do Lizak3 - Udzielil mi praw do tego kodu na pw :)
  3. #Reszta kodu nalezy do mnie.
  4.  
  5. #Edycja kodu dozwolona do celow wlasnych
  6. #TO-DO
  7. #- Crafting (z tym jest problem bo nie wykrywa 64 cobblestone w okienku)
  8. #- Zeby dropily itemy TYLKO z nazwanego Marmuru. (bo teraz dropi z kazdego bloku, nawet "cracked stone brick" zwyklego :(
  9. #- Poprawa bledow
  10. #- Wiekszy zakres "losowania" marmuru.
  11. #- Sklep marmuru za pieniadze ($$$)
  12. #- Inne funkcje / w tym AutoAktualizacja / AutoUpdate
  13.  
  14. #Milego korzystania! :)
  15.    
  16. options:
  17.     marmur: cracked stone brick
  18.     wymagane: 576 cobblestone
  19.     obrazenia: 10
  20.  
  21. #Komenda na tworzenie Marmuru
  22. command /marmur:
  23.         trigger:
  24.                 player has {@wymagane}:
  25.                         remove {@wymagane} from player
  26.                         clear {marmur.%player%}
  27.                         wait a tick
  28.                         set {marmur.%player%} to a random integer from 1 to 3
  29.                         if {marmur.%player%} is 1:
  30.                                 send "&aWylosowales 1 sztuke marmuru!"
  31.                                 give a 98:2 of thorns 10 named "&7&lMarmur" to the player
  32.                         if {marmur.%player%} is 2:
  33.                                 send "&aWylosowales 2 sztuki marmuru!"
  34.                                 give a 98:2 of thorns 10 named "&7&lMarmur" to the player
  35.                                 give a 98:2 of thorns 10 named "&7&lMarmur" to the player
  36.                         if {marmur.%player%} is 3:
  37.                                 send "&aWylosowales 3 sztuki marmuru!"
  38.                                 give a 98:2 of thorns 10 named "&7&lMarmur" to the player
  39.                                 give a 98:2 of thorns 10 named "&7&lMarmur" to the player
  40.                                 give a 98:2 of thorns 10 named "&7&lMarmur" to the player
  41.                 else:
  42.                         send "&4Blad:&c Nie posiadasz 9 stakow cobblestone"
  43. #Panel admina
  44. command /marmuradm [<text="pomoc">] [<items>]:
  45.         permission: marmur.admin
  46.         trigger:
  47.                 argument 1 is not "pomoc", "dodaj", "usun" or "usunall":
  48.                         send "&4Blad: &cBrak takiej komendy, lub zla nazwa przedmiotu!"
  49.                         stop
  50.                 argument 1 is "pomoc":
  51.                         send "&7 >>  &6Marmur Admin Panel  &7<< "
  52.                         send "&6/marmuradm dodaj <item> - &7Dodanie nowego itemu do listy"
  53.                         send "&6/marmuradm usun <item> - &7Usuwanie itemu z listy"
  54.                         send "&6/marmuradm usunall    - &7Usuwa wszystkie itemy z listy &7(&6*TEST*&7)"
  55.                         send "&7Lista:&c %{cobblelose::*}%"
  56.                         send "&7Skrypt stworzony przez &6AdamGrzegorz &7:)"
  57.                 argument 1 is "dodaj":
  58.                         if argument 2 is not set:
  59.                                 send "&4Blad: &cWpisz nazwe przedmiotu!"
  60.                         else:
  61.                                 add argument 2 to {cobblelose::*}
  62.                                 send "&6>> &7Dodano &6'%arg 2%'&7 do z listy marmuru"
  63.                 argument 1 is "usun":
  64.                         if argument 2 is not set:
  65.                                 send "&4Blad: &cWpisz nazwe przedmiotu!"
  66.                         else:
  67.                                 remove argument 2 from {cobblelose::*}
  68.                                 send "&6>> &7Usunieto &6'%arg 2%' &7z listy marmuru"
  69.                 #nie testowane / komenda testowa
  70.                 argument 1 is "usunall"
  71.                 clear {cobblelose::*}
  72.                 send "&6>> &7Usunieto &6cala liste &7marmuru bezpowrotnie!"
  73. on place of {@marmur}:
  74.     send "&aPostawiles &7&lMarmur&a!" to player
  75.  
  76.  
  77. on break of {@marmur}:
  78.     cancel event
  79.     set event-block to air
  80.     damage player's tool by {@obrazenia}   
  81.     drop a random item of {cobblelose::*} at event-block
Advertisement
Add Comment
Please, Sign In to add comment