Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Villager Trading


Recommended Posts

I am trying to make my own Villagers, following Samedifferent's More Villagers code, and it all works, except EmeraldForItemsTrade and ItemsForEmeraldsTrade are both private, so I cannot use them.

Is there a different method to use instead to give trades? This is the code that should, but doesn't work:

VillagerTrades.ITrade[] oceanographerLevel1 = new VillagerTrades.ITrade[]{
        new VillagerTrades.EmeraldForItemsTrade(Items.PRISMARINE,14,16,2),
        new VillagerTrades.ItemsForEmeraldsTrade(Items.SEA_LANTERN, 2, 4, 16, 1)
VillagerTrades.ITrade[] oceanographerLevel2 = new VillagerTrades.ITrade[]{
        new VillagerTrades.EmeraldForItemsTrade(Items.PRISMARINE_BRICKS,14,16,10),
        new VillagerTrades.ItemsForEmeraldsTrade(Items.SPONGE, 4, 2, 16, 5)
VillagerTrades.ITrade[] oceanographerLevel3 = new VillagerTrades.ITrade[]{
        new VillagerTrades.EmeraldForItemsTrade(Items.DARK_PRISMARINE,12,16,20),
        new VillagerTrades.EmeraldForMapTrade(13, Structure.BURIED_TREASURE, MapDecoration.Type.RED_X, 12, 10)
VillagerTrades.ITrade[] oceanographerLevel4 = new VillagerTrades.ITrade[]{
        new VillagerTrades.ItemsForEmeraldsTrade(Items.NAUTILUS_SHELL, 3, 1, 12, 15),
        new VillagerTrades.ItemsForEmeraldsTrade(Items.HEART_OF_THE_SEA, 8, 1, 12, 15),
VillagerTrades.ITrade[] oceanographerLevel5 = new VillagerTrades.ITrade[]{
        new VillagerTrades.ItemsForEmeraldsTrade(Items.TRIDENT, 32, 1, 2, 30)


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.