grantygames

Untitled

Jul 13th, 2015
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. command /machado:
  2. permission: machado.usar
  3. trigger:
  4. give 1 diamond axe named "&b&lMachado de Odin" to player
  5. send "&aVoce pegou um machado!"
  6.  
  7. on rightclick with diamond axe on a entity:
  8. name of tool of player contains "&b&lMachado de Odin"
  9. cancel event
  10. set {_tempo} to difference between {machadoodin.%player%} and now
  11. if {_tempo} is less than 1.0 seconds:
  12. stop
  13. set {machadoodin.%player%} to now
  14. player has 1 arrow:
  15. shoot a arrow at speed 5
  16. remove 1 arrow from player
  17. ignite clicked entity
  18. stop
  19. else:
  20. message "&cVoce precisa de uma flecha"
  21. stop
Advertisement
Add Comment
Please, Sign In to add comment