Seekeer

KOPARKA

Mar 22nd, 2014
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.04 KB | None | 0 0
  1. Options:
  2.     tag: &8[&6&lKoparka CB&8]&r
  3.    
  4. command /koparka [<text>]:
  5.     trigger:
  6.         if player has permission "seek.koparka":
  7.             if arg 1 is "STONE":
  8.                 give 1 chest named "&6&lSTONE" to player
  9.                 send "{@tag} : &a&lDostales koparke :)" to player
  10.                 stop
  11.             if arg 1 is "WOD":
  12.                 give 1 chest named "&6&lWOOD" to player
  13.                 send "{@tag} : &a&lDostales koparke :)" to player
  14.                 stop
  15.             if arg 1 is "SAND":
  16.                 give 1 chest named "&6&lSAND" to player
  17.                 send "{@tag} : &a&lDostales koparke :)" to player
  18.                 stop   
  19.  
  20. On place of chest:
  21.     if name of player's tool is "&6&lSTONE":
  22.         send "{@tag} &aPomyslnie ustawiles koparke." to player
  23.         set {stone.owner.%location of block%} to player
  24.         while {stone.owner.%location of block%} is set:
  25.             if block below is stone:
  26.                 add stone to event-block
  27.                 set block below to air
  28.                 wait 1 seconds
  29.                      
  30. On break:
  31.     if {stone.owner.%location of block%} is set:
  32.         send "{@tag} &aZniszczyles koparke." to player
  33.         clear {stone.owner.%location of block %}
  34.         stop
  35.                            
  36.            
  37. On place of chest:
  38.     if name of player's tool is "&6&lWOOD":
  39.         send "{@tag} &aPomyslnie ustawiles koparke." to player
  40.         set {wood.owner.%location of block%} to player
  41.         while {wood.owner.%location of block%} is set:
  42.             if block below is stone:
  43.                 add stone to event-block
  44.                 set block below to air
  45.                 wait 1 seconds
  46.                        
  47. On break:
  48.     if {wood.owner.%location of block%} is set:
  49.         send "{@tag} &aZniszczyles koparke." to player
  50.         clear {wood.owner.%location of block %}
  51.         stop           
  52.        
  53. On place of chest:
  54.     if name of player's tool is "&6&lSTONE":
  55.         send "{@tag} &aPomyslnie ustawiles koparke." to player
  56.         set {sand.owner.%location of block%} to player
  57.         while {sand.owner.%location of block%} is set:
  58.             if block below is stone:
  59.                 add stone to event-block
  60.                 set block below to air
  61.                 wait 1 seconds
  62.                      
  63. On break:
  64.     if {sand.owner.%location of block%} is set:
  65.         send "{@tag} &aZniszczyles koparke." to player
  66.         clear {sand.owner.%location of block %}
  67.         stop
Advertisement
Add Comment
Please, Sign In to add comment