familychicken

Untitled

Mar 18th, 2022 (edited)
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. on chat:
  2. set chat format to "&f%player%: &f %colored message%"
  3.  
  4. on right click with a stone pickaxe:
  5. loop 15 times:
  6. set {_num} to {_num}+0.5
  7. set {_Particle} to location of the block {_num} meter infront of player's head
  8. draw 2 flame particles at {_particle} with direction 0 and speed .2
  9. spawn 2 of particle "FLAME" for player at {_Particle} offset by 0.2, 0.2, 0.2 with speed 0.05
  10. if the block {_num} meter infront of player's head is not air:
  11. message "okay" to player if the block {_num} meter infront of player's head is stone
  12. stop loop
  13.  
  14. on sneak toggle:
  15. if player is sneaking:
  16. set {_packet} to new play_server_set_cooldown packet
  17. set "item" pinfo 0 of {_packet} to stone_pickaxe
  18. set int pnum 0 of {_packet} to 60
  19. send player packet {_packet}
  20.  
  21.  
  22.  
Add Comment
Please, Sign In to add comment