Advertisement
Guest User

Untitled

a guest
Feb 10th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. on rightclick:
  2. set {_block} to targeted block
  3. if {_block} is water:
  4. if player has enough space for 1 water bottle:
  5. if player's tool is bottle:
  6. cancel event
  7. remove 1 bottle from player
  8. give player 1 water bottle named "&fLikaista vettä"
  9. else:
  10. cancel event
  11. remove 1 bottle from player
  12. drop 1 water bottle named "&fLikaista vettä" at location of player's head
  13.  
  14.  
  15. on leftclick with water bottle:
  16. if name of player's tool is "&fLikaista vettä":
  17. #broadcast "DEBUG: nimi"
  18. execute console command "/playsound game.hostile.swim @a %x-coordinate of player% %y-coordinate of player% %z-coordinate of player% 0.6 0.9"
  19. set player's tool to air
  20. give player 1 bottle
  21. chance of 1%:
  22. drop 1 gold nugget at location of player
  23. #send "DEBUG: tippuu"
  24. wait 10 ticks
  25. set {_rand} to random integer between 1 and 4
  26. if {_rand} is 1:
  27. send "&7Pullosta taisi tipahtaa jotain kimaltelevaa."
  28. if {_rand} is 2:
  29. send "&7Jotain kimaltavaa putosi veden mukana maahan."
  30. if {_rand} is 3:
  31. send "&7Veden mukana taisi tipahtaa jotain."
  32. if {_rand} is 4:
  33. send "&7Taikuri !"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement