Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on rightclick:
- set {_block} to targeted block
- if {_block} is water:
- if player has enough space for 1 water bottle:
- if player's tool is bottle:
- cancel event
- remove 1 bottle from player
- give player 1 water bottle named "&fLikaista vettä"
- else:
- cancel event
- remove 1 bottle from player
- drop 1 water bottle named "&fLikaista vettä" at location of player's head
- on leftclick with water bottle:
- if name of player's tool is "&fLikaista vettä":
- #broadcast "DEBUG: nimi"
- execute console command "/playsound game.hostile.swim @a %x-coordinate of player% %y-coordinate of player% %z-coordinate of player% 0.6 0.9"
- set player's tool to air
- give player 1 bottle
- chance of 1%:
- drop 1 gold nugget at location of player
- #send "DEBUG: tippuu"
- wait 10 ticks
- set {_rand} to random integer between 1 and 4
- if {_rand} is 1:
- send "&7Pullosta taisi tipahtaa jotain kimaltelevaa."
- if {_rand} is 2:
- send "&7Jotain kimaltavaa putosi veden mukana maahan."
- if {_rand} is 3:
- send "&7Veden mukana taisi tipahtaa jotain."
- if {_rand} is 4:
- send "&7Taikuri !"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement