DevOnTheRocks / RockyTweaks

A Minecraft Forge mod that adds additional functionality to other mods.
GNU General Public License v3.0
5 stars 2 forks source link

How do you remove a Trade? #16

Closed StoneLegion closed 5 years ago

StoneLegion commented 5 years ago

I tried a few methods but it looks like it's not possible?

Mohron commented 5 years ago

At the time that I created the add merchant trade capability, Forge lacked a proper way to access, let alone modify, existing trades. I haven't looked into it since originally adding the feature by that is why there's no support for it.

Mohron commented 5 years ago

I took a look at the forge code, and I don't see any sane way to access and modify villager's trades. I'm sure with the right tools (reflection, asm, etc) it would be but I won't be going down that dark path. This can be readdressed when forge provides a proper interface for reading and removing villager's recipes.