Learning a recipe after obtaining an item in inventory

Started by K_Ari on

Topic category: Help with modding (Java Edition)

Last seen on 17:50, 1. Dec 2023
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Learning a recipe after obtaining an item in inventory

So I just followed a MCreator tutorial for giving my item a recipe. The recipe works, but now I have another goal: Making it so that when you receive an item (apple) in your inventory, you gain a recipe (apple pie) that you can make with said item. I tried googling it and found TheAllPowerfulBread's forum, but it kinda didn't help.

In the test, you don't gain the recipe knowledge after you have an apple in your inventory. HOWEVER!! If you craft the apple pie, you then gain the recipe. I want it to work like normal vanilla minecraft items.

Here is the, uhh, code ig (I have 0 coding experience (I did copy-paste and modify some roblox scripts tho (We also learned C++ coding in school (I learned nothing))))

It's the same result (italicized words) no matter how I change the 'apple' or 'global trigger' or after 'add recipe'. Hoping that one of you can figure out the problem, thanks <33

Last seen on 17:50, 1. Dec 2023
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
never mind chat I figured it…
Thu, 11/30/2023 - 16:23

never mind chat I figured it out