How do I add a variable when I craft an item?

Started by Mopru on

Topic category: Help with Minecraft modding (Java Edition)

Active 4 months ago
Joined Jan 2023
Points:
479

User statistics:

  • Modifications: 0
  • Forum topics: 30
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 42
How do I add a variable when I craft an item?
Wed, 07/26/2023 - 22:02 (edited)

Title explains itself. Although, this body paragraph has to be at least 25 characters so i'll restate it: How do I add a variable when I craft an item?

Edited by Mopru on Wed, 07/26/2023 - 22:02
Active 1 year ago
Joined Jul 2023
Points:
234

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 26
If you mean to change a…
Thu, 07/27/2023 - 00:30

If you mean to change a value in an existing variable you could just use the Set Custom variable code block when the item is crafted

Active 4 months ago
Joined Jan 2023
Points:
479

User statistics:

  • Modifications: 0
  • Forum topics: 30
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 42
is there a specific way to…
Thu, 07/27/2023 - 02:51

is there a specific way to check if an item is crafted a certain way?

Active 1 year ago
Joined Jul 2023
Points:
234

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 26
Items can only be crafted…
Thu, 07/27/2023 - 04:05

Items can only be crafted one way, unless you create multiple crafting recipes for one item, in that case i think you cannot detect what recipe you used. Also, i have the odd feeling i'm not understanding your question very well

Active 4 months ago
Joined Jan 2023
Points:
479

User statistics:

  • Modifications: 0
  • Forum topics: 30
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 42
no youre understanding it…
Thu, 07/27/2023 - 15:22

no youre understanding it perfectly. and ive decided to just make a custom crafting table.