Guest User

Untitled

a guest
Dec 26th, 2013
965
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ╔════════════════════════════════════════
  2. ║ TreeAssist by FejminTV ║
  3. ║ Zezwalam na: ║
  4. ║ - edytowanie komunikatow ║
  5. ║ Nie zezwalam na: ║
  6. ║ - Robienie z niego jakichkolwiek reklam ║
  7. ║ - Zarabianie na skrypcie ║
  8. ║ - Usuwanie informacji o autorze ║
  9. ╚════════════════════════════════════════
  10.  
  11. variables:
  12. {tree.status} = 1
  13. options:
  14. permission: &4Nie masz uprawnien by uzywac tej komendy!
  15. tag: &8[&cTreeAssist&8]
  16. on break of wood:
  17. {tree.status} is 1:
  18. if player has permission "tree":
  19. player is holding axe:
  20. loop blocks upwards:
  21. loop-block is wood:
  22. drop the loop-block-1 at event-block
  23. set the loop-block-1 to air
  24. add 1 to {tool.%player%}
  25. loop blocks in radius 1 around loop-block:
  26. if loop-block-1 is leaves:
  27. set {tree.%player%} to true
  28. set the loop-block-1 to air
  29. else:
  30. send "{@tag} {@permission}"
  31. stop
  32.  
  33. command /tree [<text>]:
  34. trigger:
  35. if player has permission "tree":
  36. if arg 1 is "off":
  37. set {tree.status} to 0
  38. send "{@tag} &7TreeAssist jest &cOFF"
  39. stop
  40. if arg 1 is "on":
  41. set {tree.status} to 1
  42. send "{@tag} &7TreeAssist jest &aON"
  43. stop
  44. else:
  45. send "{@tag} &c/tree &7(&con&7/&coff&7)"
  46. stop
  47. else:
  48. send "{@tag} {@permission}"
  49. stop
Advertisement
Add Comment
Please, Sign In to add comment