Farming for Blockheads

Farming for Blockheads

79M Downloads

[1.15 only] Multiple entries for the same output causes every entry past the first to not work correctly

Ghostoflegend11 opened this issue ยท 1 comments

commented

with this as my marketregistry json only agave actually works, every other thing selling for an emerald shows up in the gui but selling gives you a false emerald and if you try to use it or leave the Gui the item you traded is dropped on the floor and the emerald disappears.
minecraft 1.15.2
farming for blockheads 6.1.5
i could be wrong and my code could be completely spaghetti, apologies if thats the case

{
  "customCategories": {
    "sell": {
      "name": "sell",
      "icon": {
        "item": "minecraft:emerald"
      }
    }
  },
"customEntries": [
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:agaveitem",
        "count":64
      },
      "category": "sell"
    },  
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:amaranthitem",
        "count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:arrowrootitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:artichokeitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:asparagusitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:barleyitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:beanitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:bellpepperitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:blackberryitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:blueberryitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:broccoliitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:brusselsproutitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:cabbageitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:cactusfruititem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:candleberryitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:cantaloupeitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:cassavaitem",
		"count":64
      },
      "category": "sell"
    },	
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:caulifloweritem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:celeryitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:chickpeaitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:chilipepperitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:coffeebeanitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:cornitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:cottonitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:cranberryitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:cucumberitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:eggplantitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:elderberryitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:flaxitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:garlicitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:gingeritem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:grapeitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:greengrapeitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:huckleberryitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:jicamaitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:juniperberryitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:juteitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:kaleitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:kenafitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:kiwiitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:kohlrabiitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:leekitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:lentilitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:lettuceitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:milletitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:mulberryitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:mustardseedsitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:oatsitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:okraitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:onionitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:parsnipitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:peanutitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:peasitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:pineappleitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:quinoaitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:radishitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:raspberryitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:rhubarbitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:riceitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:rutabagaitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:ryeitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:scallionitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:sesameseedsitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:sisalitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:soybeanitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:spiceleafitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:spinachitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:strawberryitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:sweetpotatoitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:taroitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:tealeafitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:tomatilloitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:tomatoitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:turnipitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:waterchestnutitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:whitemushroomitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:wintersquashitem",
		"count":64
      },
      "category": "sell"
    },
    {
      "output": {
        "item": "minecraft:emerald"
      },
      "payment": {
        "item": "pamhc2crops:zucchiniitem",
		"count":64
      },
      "category": "sell"
    }
  ]
}
commented

As mentioned on Discord, this issue was most likely fixed on 1.16+. For that fix to be backported someone would have to create a pull request.