MarkusBordihn/BOs-Easy-Mob-Farm

🐛Inconsistent Behavior with Loot from Farms and Natural Mobs

Closed this issue · 4 comments

Overview

Loot obtained from farms and naturally generated mobs are not treated as identical items, leading to discrepancies in stacking and crafting operations.


Symptoms

  1. Stacking Issue: Drops from farms and loot from naturally spawned mobs are treated as distinct items, preventing them from stacking together.
  2. Crafting Issue: When using farmed loot in a crafting recipe:
    • The game counts the loot towards the possible creation of the item.
    • However, the farmed loot isn't correctly placed in the crafting slots.

Reproduction: Stacking Issue

  1. I placed an iron golem inside a creative farm:
    Iron Golem
  2. The loot from the farm resulted in:
    Farmed Loot
  3. I then added 20 iron to my inventory using the give command.
  4. I tried stacking the loot from the farm with the iron obtained through the give command but they didn't combine. This discrepancy becomes evident when using auto-sorting mods:
    Stacking Issue

Reproduction: Crafting Issue

  1. I collected 16 iron from the golem farm.
  2. Added 64 sticks to my inventory.
  3. When selecting the iron sword recipe (which the game considers doable with my inventory), only one stick is placed in the crafting table slots:
    Crafting Issue
  4. However, the game seems to recognize the total iron count. Pressing the recipe with shift places 8 sticks, corresponding to 8 potential iron swords (using the 16 iron):
    Crafting Recognition

Expected Behavior

Both loot from farms and natural spawns should be treated uniformly, allowing for seamless stacking and crafting operations.


Environment

Minecraft version: 1.19.4
Mod Version: 6.8.0

Could you please put both items in your hotbar and using the following command on each of the selected item:
/data get entity @s SelectedItem

This will show you the NBT data for each item like:
image

If they are any difference in the name or other additional data, they will not stack.

Here you go (16 is from farm, 1 is from creative inventory):
image
Seems like the tag:{} kv breaks it.

Thanks for the additional details.

I run some tests and it seems that the issue is the quick move functionality.
So when you move the item manually with the mouse it's working as expected, but not if you using the quick move functionallity.

image

I will work on a fix.

This should be fixed with 6.9.0 which should be live in the next hours.