Platymemo / alaskanativecraft

Alaska Native Craft is a mod looking to bring Alaska Native cultures to Minecraft!
Creative Commons Zero v1.0 Universal
9 stars 12 forks source link

[BUG] Seals fill the ocean with fish drops #8

Closed saltyseadoggo closed 3 years ago

saltyseadoggo commented 3 years ago

Describe the bug Seals spawn in valid water biomes and then attack and kill cod and salmon, but they don't eat them; they instead let the dropped cod, salmon and bone meal items float to the surface, where they accumulate over time and could potentially cause issues on servers. This is accurate to vanilla behaviour of other hunting mobs such as wolves or foxes, but they typically do not find nearly as much prey as seals do, due to cod and salmon being so common.

To Reproduce Steps to reproduce the behavior:

  1. Create a new world.
  2. Find a cold ocean with /locatebiome. Identify the local seals.
  3. Go AFK near where the seals are for about 15 minutes.
  4. Return to game. Note the abundance of cod, salmon and bone meal items.

Expected behavior Seals would not generate loads of item entities as they hunt fish. They could actually 'eat' the fish upon killing them, not dropping any items, or they could be made less aggressive about hunting fish, similarly to how Piglins have to decide to hunt Hoglins before they attack them. At the moment, they almost constantly find newly spawned fish to kill.

Screenshots 2021-02-02_23 47 15

Mod Versions (please complete the following information):

Platymemo commented 3 years ago

I will look into getting seals to make them not drop items as a feature renderer for item pickups will simply take too much time for now. Alternatively, I can make seals not hunt fish. I'll probably do both and make it a config option.

tyra314 commented 3 years ago

I'll second this. I set up my base in a caldera of Terrestria and had to kill the seals because they went nuts on the fish, which is lagging me out. As an alternative idea, you could add a cooldown so that the seals don't constantly are hunting, but maybe chillin' on the beach.

Platymemo commented 3 years ago

Closing this for now as I just released v1.1.1 which should fix this from my testing, and also makes it configurable in case you want to enable a population boom for some reason.