Advertisement
Randall123459

Timber Skript

May 22nd, 2016
2,335
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. options:
  2. Perm: uhc.staff
  3. P: &f[&bTimber&f]
  4. C: &b
  5. H: &f
  6.  
  7. on break of wood:
  8. if {timber} is true:
  9. loop blocks upwards:
  10. if loop-block is wood:
  11. drop the loop-block-1 at event-block
  12. set the loop-block to air
  13. loop blocks in radius 2 around loop-block:
  14. if loop-block-2 is wood:
  15. drop the loop-block-2 at event-block
  16. set the loop-block-2 to air
  17. loop blocks below:
  18. if loop-block is wood:
  19. drop the loop-block-1 at event-block
  20. set the loop-block to air
  21. loop blocks in radius 2 around loop-block:
  22. if loop-block-2 is wood:
  23. drop the loop-block-2 at event-block
  24. set the loop-block-2 to air
  25.  
  26. command /Timber <text>:
  27. permission: {@Perm}
  28. usage: /Timber <On:Off>
  29. trigger:
  30. if arg-1 is "enable" or "on":
  31. set {Timber} to true
  32. broadcast "{@P}{@C} Timber {@H}Enabled{@C}!"
  33. if arg-1 is "disable" or "off":
  34. delete {Timber}
  35. broadcast "{@P}{@C} Timber {@H}Disabled{@C}!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement