Topic category: Troubleshooting, bugs, and solutions
I have a trade where you trade 10 iron for 16 redstone and when im in the game i can't trade with them with the iron. and it says i need to trade only 1 piece of iron. So the amount is wrong and i cant trade unless i put something in the Optonal price 2 area, it gives me this error:
Fabric 1.21.8 Generator MCreator 2025.3
[19:29:02] [Server thread/WARN] (Minecraft) [net.minecraft.world.level.chunk.storage.EntityStorage] Serialization errors:
]: chunk@[4, 23]Villager['Redstoner'/769, l='ServerLevel[New World]', x=78.70, y=69.00, z=369.50]: Failed to encode value '[net.minecraft.world.item.trading.MerchantOffer@2410988b, net.minecraft.world.item.trading.MerchantOffer@673f3251]' to field 'Offers': Item must not be minecraft:air
Here is the generated code view:{
"_fv": 79,
"_type": "villagertrade",
"definition": {
"tradeEntries": [
{
"villagerProfession": {
"value": "CUSTOM:Redstonest"
},
"entries": [
{
"price1": {
"value": "Items.IRON_INGOT"
},
"countPrice1": 10,
"price2": {
"value": ""
},
"countPrice2": 10,
"offer": {
"value": "Items.REDSTONE"
},
"countOffer": 16,
"level": 1,
"maxTrades": 25,
"xp": 5,
"priceMultiplier": 0.1
},
{
"price1": {
"value": "Items.RAW_IRON"
},
"countPrice1": 8,
"price2": {
"value": "Items.COAL#0"
},
"countPrice2": 10,
"offer": {
"value": "Items.IRON_INGOT"
},
"countOffer": 8,
"level": 1,
"maxTrades": 10,
"xp": 5,
"priceMultiplier": 0.05
}
]
}
]
}
}
Image link (https://drive.google.com/uc?export=view&id=1RKfwtIsTUxkGibLor1WKV8hhhKf…)