Code and mod stuff

Started by I dont speak english on

Topic category: Help with modding (Java Edition)

Last seen on 17:55, 28. Nov 2022
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Code and mod stuff

What I want to resolve is that I have been following a tutorial on how to replace vanilla villager trades. The problem is that I want the villager to give me one of the custom items that I have for 2 emeralds. What I don't know is how to determine how many emeralds I want the product for. And something is also that when I put the ID of a custom item it doesn't work. How do I solve it?
This is the code. Tell me if I have to add something and in which line to put it, next to what to put it. If you could send me a capture with the thing in its place, I would appreciate it.