Stardew Valley
0 of 0

File information

Last updated

Original upload

Created by

aedenthorn

Uploaded by

aedenthorn

Virus scan

Safe to use

Tags for this mod

About this mod

Makes ducks actually want to swim in water once they have been fed and petted; also makes water tiles more accessible to ducks and adds friendship points towards the farmer when ducks are able to swim.

Permissions and credits
Changelogs
Donations
For people complaining about ducks rarely if ever swimming in water, the reason seems to be some conflict between the game's collision logic and the farm animal check to see whether they can reach water from their current tile. On the standard farm, there are only 4 tiles on the whole map that a duck can be at to be able to jump into the water (they're at the bottom of the big pond).

This mod changes collision logic for ducks with regards to water so there are more chances for them to swim normally (the standard farm map will have 22 tiles they can enter the water from).

Further, the mod checks each duck on the farm map (after they eat and are petted, and every ten minutes) to see if it:

  • has not swam today
  • has eaten today
  • has been petted today (by default, autopetting counts)


If all of the above are true, and the farm has water-entry tiles near the duck (default 20 tiles away or less), ducks will begin to try to find a path to water, moving directly to the closest reachable water-entry tile not already targeted by another duck.

Finally, ducks gain a set friendship bonus (default 10 points) the first time they swim on a given day.


Notes:

This mod should work with any modded animal that can swim, if such a thing ever exists. It should work with any farm map that has proper water tiles.

Ducks are added to a queue with their potential hop tile info, and the mod checks a maximum of one duck every tick (based on a random chance per tick). Pathfinding will only occur if no animal pathfinding was done on that tick, so the mod shouldn't cause any performance issues.


Config

You can customize this mod by editing the config file or using Generic Mod Config Menu.


Technical

Requires SMAPI.

Implements a Generic Mod Config Menu interface to change config settings in-game.

Compatible with Mod Updater for automatic updates.

Code is at https://github.com/aedenthorn/StardewValleyMods.

If you want to complain or ask for help or help me test my mods, you can visit my Discord server.

A list of all my mods for Stardew Valley is available at https://www.nexusmods.com/stardewvalley/articles/895.