Question for those with auto Bartering systems

Discussion in 'General Minecraft Discussion' started by ThaKloned, Dec 24, 2024.

  1. I'm testing out my build and for some reason, I am getting a decent amount of gold ingots ending up in the "garbage" line of hoppers. I have it set so that every 10 seconds, an ingot is dropped for the piglins to pick up and drop it's goodies. There should be no reason any gold ingots are ending up where they are.

    Anyone run into this issue? Do you have to be a certain distance away for them to pick up it? Does the dispensor's not fire if too far? I can't figure out why this is happening. Would love some insight in to how others have their setup running.
  2. Not sure about the timing, but it may be possible that you are feeding the ingots too fast or that the way you feed them they get picked up by the hopper before the piglin picks them up. I use the approach of dispensing onto a pressure plate and the next ingot is dispensed when the plate senses the previous one is picked up to maximize rates. It is based on the core mechanic from the tutorial video in the wiki "Simple Piglin Bartering Farm...", but with a fully automated sorting system and a bit more space between the piglins to prevent adjacent ingots from grouping (important EMC adjustment). Are you able to watch your system and see what's happening?
    https://minecraft.wiki/w/Tutorial:Bartering_farm
    ThaKloned likes this.
  3. I bet this is the issue. Never even thought about that. Everything else should be fine from all my testing in SP. My system is already pretty complex so IDK how I will spread them out even more. I currently use 4 of them.

    I have a system that crafts nuggets into ingots, then going into a thing that alternates what line the ingot gets sent down so that it's not just one pigmen getting all the gold. Then there drops go into another system that sorts everything. Was even able to sort books and potions (sorting water, from potions and tossing out splash versions) and then trashing iron boots and string.

    So distance has nothing to do with this? The afk platform is approx. 50 blocks away.
  4. That sounds similar to my setup except my gold farm is separate from my bartering farm, so I manually transfer the gold (blocks in shulkers) and convert to ingots before loading into my system which just uses a dumb hopper pipe to keep all the dispensers filled. I've got some upgrades planned with autocrafters and shulker loaders/unloaders, but that's off-topic for now. It is nice that there are ways to sort out books and bottles. I'd love to see how you separate splash potions and water bottles. I haven't gotten to that level yet.

    The design I went with puts the piglins in pairs, one block between them with a single pressure plate on the block between each pair and 3 empty blocks between piglin pairs. The drops from each piglin pair go into a single hopper pipe standard item sorter since I calculated that 2 piglins is the most you can have on a sorter line and not overload the hopper pipe (they put out a lot of items!). The pressure plate is really helpful here since when the first piglin picks up the first ingot, the dispensed immediately spits out a second for the second piglin so no wasted time. Also note that with this setup, the dispensed ingots are separated by 5 blocks (not including the blocks they occupy). This is important since EMC has a larger radius where items stack to reduce the number of entities floating around. So, if P=Piglin, I=gold ingot, and G=Glass block, my setup looks something like this:
    P I P G G G P I P G G G P I P ...

    Also, you bring up a good point about distance. Piglins are impacted by the EMC Entity Activation Range (EAR). I forget what category they fall into and thus what range they have, but note from the wiki that there are exceptions. Personally, I put all my Piglins into minecarts, which in theory should prevent EAR, but I did have to adjust the pressure plate setup to make sure they could reach the inglots while sitting. I've still noticed they stopped bartering if I get too far, but I am typically about 20-30 blocks away from the farthest piglin and haven't systematically tested the range. The design I've got for now uses 6 piglins, but is organized so I can easily have 4 modules (24 piglins total) and still have a similar distance to the piglins from my AFK spot. Even with 6, it ouputs plenty if I afk for a while.
    https://empireminecraft.com/wiki/changes-from-vanilla-minecraft/#entity-activation-ranges-ear
    ThaKloned likes this.
  5. Interesting. Maybe I should use this info and re-evaluate my setup. Only thing I haven't built yet was the gold farm. My current design uses the round platforms of magma and I have about 25 levels x2 pillars. Hopefully this is enough to keep everything going. The idea of gold coming out between 2 pigs sounds very doable for my setup and wouldn't have to worry about item stack since my distance between pairs would be similar to your and would also remove the need for a item splitter between all 4 cells.

    Also I'd be happy to show you the potion sorting. It seems complicated by boy is it affective. This way I can save water bottle, fire res potions but means trashing the splash potions since they can't be seperated.
  6. So rebuilt the whole gold ingot feeding system and works amazing. I was able to cut out soo much redstone and other blocks have 2 sets of pigmen sharing 1 dispenser each. Running it now for the night to make sure they can still barter from my AFK spot (which seems) likely. More importantly, no gold is ending up in the trash! Wild that the one issue was just item grouping :D

    As for the potion sorting, I will try to build it on one of my res, and I can test it out to show you how it works.