CraftTweaker

CraftTweaker

151M Downloads

Expose the various subclasses of VillagerTrades.ItemListing to CraftTweaker

IchHabeHunger54 opened this issue ยท 0 comments

commented

Describe the feature you'd like

The VillagerTrades class contains various inner classes to help with creating specialized types of trades. These include:

  • Enchanted books and tools trades
  • Treasure map trades, leading to a specified structure type
  • Trades with biome-dependent (or actually, villager type-dependant) outputs
  • Trades with randomly dyed outputs
  • Suspicious stew trades
  • Trades with random potions set on the outputs

I would request these to either be exposed to CraftTweaker, or helper methods to be made that allow for creating these specialized trades.

Describe alternatives you've considered

The alternatives are writing all the logic required in a custom CraftTweaker function. While this would certainly be possible (applying a random enchantment to the output isn't too hard), I think it would be better to directly use what vanilla offers. Also, specifically for the treasure maps, I'm not sure if it's possible.

Additional context

No response

Minecraft version

1.19

Modloader

All