Advertisement
SuzukazeK

Untitled

Oct 11th, 2019
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. on mine:
  2. player is sneaking
  3. player's tool is axe
  4. event-block is log
  5. set {loc::%event-location%} to event-location
  6. loc()
  7.  
  8. function loc():
  9. wait 2 tick
  10. loop {loc::*}:
  11. loop blocks in radius 1 around loop-value:
  12. if loop-block is log:
  13. break loop-block
  14. show 10 crit particles at loop-block's location offset by 0.1, 0.1, 0.1 with speed 0.01
  15. play sound "block.wood.break" with volume 1 and pitch 1 at loop-block's location
  16. set {loc::%loop-block's location%} to loop-block's location
  17. loc()
  18. delete {loc::%loop-value-1%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement