Stardew Valley
0 of 0

File information

Last updated

Original upload

Created by

aedenthorn and temisthem

Uploaded by

temisthem

Virus scan

Safe to use

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.

Requirements
Permissions and credits
Updated Like a Duck to Water by aedenthorn to be 1.6 compatible.

Mod Compatibility:

Using this mod together with Alternative Textures may cause ducks to use their walking animation instead of swimming animation on water.

Multiplayer Compatibility:

Only affects multiplayer if the host has it installed. Farmhands with this mod installed will (probably) not affect the multiplayer game.

Source Code:

If you want to help make this mod better, or maybe you think my code sucks and you can do better, visit my repo here.

Permissions Disclaimer:

Aedenthorn has retired from SDV modding and has removed all restrictions on permissions concerning their mods.
This announcement can be found here in the Stardew Valley Modding Discord server.

Aedenthorn's Stardew Valley Mod repo uses the GPL-3 license which allows derivative works to be allowed without requiring permission, given that they remain free, open source, and also use the same GPL-3 license.

Original Description:

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.s://www.nexusmods.com/stardewvalley/articles/895.