Fishing Day

Fishing in the sea

Such a nice morning to go fishing! Grab your boat and fishing rod, and head out to sea! Don’t forget your apples in case you get sick…

Try the code:

player.onItemInteracted(BOAT, function () {
    gameplay.setWeather(Weather.Clear)
    gameplay.timeSet(gameplay.time(DAWN))
})
player.onTravelled(TravelMethod.Riding, function () {
    mobs.applyEffect(Effect.Nausea, mobs.target(LOCAL_PLAYER), 10, 1)
})
player.onItemInteracted(FISHING_ROD, function () {
    mobs.spawn(DOLPHIN, pos(2, 4, 0))
    mobs.spawn(PUFFERFISH, pos(-2, 4, 0))
    mobs.spawn(SALMON, pos(0, 4, 2))
    mobs.spawn(TROPICAL_FISH, pos(0, 4, -2))
    mobs.spawn(COD, pos(2, 4, 2))
    mobs.spawn(SQUID, pos(-2, 4, -2))
})
player.onItemInteracted(APPLE, function () {
    mobs.clearEffect(mobs.target(LOCAL_PLAYER))
})
player.say("Lets go fishing!")
player.say("Get a boat and a fishing rod")