Villager enchantment custom trade

Started by Claistien on

Topic category: Help with modding (Java Edition)

Last seen on 00:56, 1. Jan 2024
Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Villager enchantment custom trade

so, to put it simply, I want a villager to exchange a specific enchantment book, the problem is that here is the error it gives me

C:\Users\Claistien\MCreatorWorkspaces\ruby_mod\src\main\java\net\mcreator\rubymod\village\TradevillageTrade.java:28: error: cannot find symbol
EnchantmentHelper.addEnchantment(enchantedBook, FlamingarmorEnchantment.enchantment, 1);
^
symbol: method addEnchantment(net.minecraft.item.ItemStack,net.minecraft.enchantment.Enchantment,int)
location: class net.minecraft.enchantment.EnchantmentHelper

i really need help

Last seen on 00:56, 1. Jan 2024
Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
why should i do that???
Fri, 01/27/2023 - 18:20

why should i do that???

So we have more context and…
Sat, 01/28/2023 - 16:41

So we have more context and that developers and contributors can fix the bug. It is not mandatory to do that, but without opening a bug report on our issue tracker, there is not much chance of it getting fixed