QuacziSK

QTrees

Aug 30th, 2016
1,547
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. on load:
  2. if {qtrees::status} is not set:
  3. set {qtrees::status} to true
  4.  
  5. on break of log or 162:1 or 162:0:
  6. if {qtrees::status} is true:
  7. player is holding any axe
  8. set {_log} to type of event-block
  9. loop blocks above event-block:
  10. if loop-block-1 is {_log}:
  11. set {_block} to loop-block-1
  12. loop blocks in radius 3 around {_block}:
  13. while loop-block-2 is {_log}:
  14. set {_block} to loop-block-2
  15. add {_block} to {_logcountdrop::*}
  16. if loop-block-2 is {_log}:
  17. wait 1 tick
  18. if loop-block-1 is {_log}:
  19. add {_log} to {_logcountdrop::*}
  20. set loop-block-1 to air
  21. wait 1 tick
  22. if loop-block-2 is {_log}:
  23. add {_log} to {_logcountdrop::*}
  24. set loop-block-2 to air
  25. wait 1 tick
  26. drop {_logcountdrop::*} at loop-block-1
  27. set {_dura} to size of {_logcountdrop::*}
  28. clear {_logcountdrop::*}
  29. wait 1 tick
  30. damage the tool of player by {_dura}
  31.  
  32. command /qtrees [<text>]:
  33. permission: qtrees.admin
  34. permission message: &cNie masz uprawnien &8(&6qTrees.admin&8)
  35. trigger:
  36. if arg 1 is not set:
  37. if {qtrees::status} is true:
  38. set {qtrees::status} to false
  39. send "&8[&6qTrees&8] &cWylaczono szybkie scinanie drzew."
  40. stop
  41. if {qtrees::status} is false:
  42. set {qtrees::status} to true
  43. send "&8[&6qTrees&8] &aWlaczono szybkie scinanie drzew."
  44. stop
  45. if arg 1 is "off" or "wylacz":
  46. set {qtrees::status} to false
  47. send "&8[&6qTrees&8] &cWylaczono szybkie scinanie drzew."
  48. if arg 1 is "on" or "wlacz":
  49. set {qtrees::status} to true
  50. send "&8[&6qTrees&8] &aWlaczono szybkie scinanie drzew."
Advertisement
Add Comment
Please, Sign In to add comment