Removing Villager item trades is not working.
loboazul0103 opened this issue ยท 0 comments
Issue description
I was writing a modpack and had an item I didn't like and wanted to remove it.
One of them was the villager trade, so I tried to remove it, but for some unknown reason it didn't work.
I tried using several different interfaces, but none of them worked.
I've looked all over the place to see what could be causing this, but there don't seem to be many cases with the same error as mine, so I can't figure it out.
I'm not familiar with zen scripts yet, so maybe there was an error in the script.
Here's the interface I tried
removeTradesSelling
removeTrade
removeBasicTrade
removeItemsForEmeraldsTrade
Of those, [removeTradesSelling] and [removeTrade] didn't work at all, and [removeBasicTrade] and [removeItemsForEmeraldsTrade] threw an error, and I'm not sure why.
The most common errors have the following syntax
java.lang.AbstractMethodError: Receiver class net.minecraftforge.common.BasicItemListing does not define or inherit an implementation of the resolved method 'abstract net.minecraft.world.item.ItemStack getPrice()' of interface com.blamejared.crafttweaker.api.villager.IBasicItemListing.
and
java.lang.AbstractMethodError: Receiver class net.minecraftforge.common.BasicItemListing does not define or inherit an implementation of the resolved method 'abstract net.minecraft.world.item.ItemStack getForSale()' of interface com.blamejared.crafttweaker.api.villager.IBasicItemListing.
All were tested by creating a new villager.
The version I used is 1.19.2. The version on the wiki I referenced is 1.19.3.
If I made a mistake in the script, I apologize.
Steps to reproduce
No response
Script used
The crafttweaker.log file
Minecraft version
Other
Modloader
Forge
Modloader version
43.2.23
CraftTweaker version
forge-1.19.2-10.1.50
Other relevant information
upgrade_aquatic-1.19.2-5.1.0
The latest.log file
https://gist.github.com/loboazul0103/ce3f6594096ab391ca72bd715b19fb06