Advertisement
Guest User

GarfieldStone 1.1

a guest
Nov 28th, 2014
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.70 KB | None | 0 0
  1. #================================
  2. #Autor: SierpuS
  3. #Nazwa Skryptu: GarfieldStone
  4. #================================
  5.  
  6. #================================
  7. #Zakaz podszywania siê pod autora
  8. #Zakaz umieszczania skryptu na forach etc. bez podania autora
  9. #Skrypt Jest Darmowy!
  10. #=================================
  11. on load:
  12.     set {_nazwa} to "StoneeGenerator"
  13.     Recipe.new{ {_nazwa} }
  14.     {_nazwa}.Recipe.registerIngredient{1, stone}
  15.     {_nazwa}.Recipe.registerIngredient{2, stone}
  16.     {_nazwa}.Recipe.registerIngredient{3, stone}
  17.     {_nazwa}.Recipe.registerIngredient{4, stone}
  18.     {_nazwa}.Recipe.registerIngredient{5, emerald}
  19.     {_nazwa}.Recipe.registerIngredient{6, stone}
  20.     {_nazwa}.Recipe.registerIngredient{7, stone}
  21.     {_nazwa}.Recipe.registerIngredient{8, stone}
  22.     {_nazwa}.Recipe.registerIngredient{9, stone}
  23.     {_nazwa}.Recipe.registerResult{1 diamond ore named "&8&k&l||| &aMagiczna stoniarka &8&k&l|||" with lore "&5Po jego zniszczeniu blok kamienia ||&5pojawi sie po 3 sekundach."}
  24.     {_nazwa}.Recipe.register
  25. on place of diamond ore:
  26.     if name of the player's tool is "&8&k&l||| &aMagiczna stoniarka &8&k&l|||":
  27.        send "&7Postawiles: &aMagiczna stoniarke"
  28.        set {s.%event-block%} to true
  29.        wait 1 second
  30.        set event-block to stone
  31.        stop
  32. on break of stone:
  33.    if {s.%event-block%} is true:
  34.        if player is holding gold pickaxe:
  35.            cancel event
  36.            send "&7Zniszczyles: &aMagiczna stoniarke"
  37.            set event-block to air
  38.        else:
  39.            wait 1 seconds
  40.            set event-block to stone
  41.            stop
  42. on break of stone:
  43.    if {e.%event-block%} is true:
  44.        wait 1 seconds
  45.        set event-block to stone
  46.        stop
  47. command /gs [<text>] [<text>]:
  48.    trigger:
  49.        if arg 1 is not set:
  50.            if arg 2 is not set:
  51.                send "&8*&6/gs daj [NICK] &7- Daje Stoniarke graczowi!"
  52.                send "&8*&6/gs autor &7- Autor Mini Skryptu!"
  53.        if arg 1 is "daj":
  54.            if arg 2 is set:
  55.                give diamond ore named "&8&k&l||| &aMagiczna stoniarka &8&k&l|||" with lore "{@lore}" to arg 2 parsed as player
  56.                send "&8*&6Dales Stoniarke Graczowi &7- %arg 2%!"
  57.            if arg 2 is not set:
  58.                add diamond ore named "&8&k&l||| &aMagiczna stoniarka &8&k&l|||" with lore "{@lore}" to the player's inventory
  59.                 send "&8*&6Dales Stoniarke &7- Sobie!"
  60.         if arg 1 is "autor":
  61.             if arg 2 is not set:
  62.                 send "&8~~~~~~~~~~~~~~~"
  63.                 send "&bAutorem Skryptu Jest Sierpuszek"
  64.                 send "&bSkype: kubabuba011"
  65.                 send "&bYt: http://youtube.com/MrSierpu/"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement