Jump to content

Farck

Members
  • Posts

    1
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Farck's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Wrong forum, sorry for the trouble. Im trying to change some of the librarian, armorer, toolsmith and weaponsmith vanilla trades in order to avoid a source of infinite diamond gear, avoid the workstation rerolling for enchanted books and make enchanted books expencier. Here is what im doing. //level 4 clear ----------------------------------------------------------------------- if (event.getType() == VillagerProfession.ARMORER) { Int2ObjectMap<List<VillagerTrades.ItemListing>> trades = event.getTrades(); int villagerLevel = 4; trades.get(villagerLevel).clear(); } //level 4 add trade ---------------------------------------------------------------------- if (event.getType() == VillagerProfession.ARMORER) { Int2ObjectMap<List<VillagerTrades.ItemListing>> trades = event.getTrades(); ItemStack stack = new ItemStack(Items.DIAMOND_LEGGINGS, 1); int villagerLevel = 4; trades.get(villagerLevel).add((pTrader, pRandom) -> new MerchantOffer( new ItemStack(Items.EMERALD, 19), new ItemStack(Items.DIAMOND, 5), stack, 3, 50, 0.4f)); } The problem is i couldn't figure out how to enchant the output item in the merchant recipe. Here some examples of the goal (without the enchantments).
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.