Is it possible to set gui item to a item using namespace name?

Started by SquidR42 on Mon, 11/14/2022 - 03:27

Topic category: Help with modding (Java Edition)

Last seen on 22:26, 17. Nov 2022
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Is it possible to set gui item to a item using namespace name?
Mon, 11/14/2022 - 04:08 (edited)

Im making a machine that turns two items into a "infused" item, but im not entirely sure how to give the inventory the item without having to make a ton of if statements, so is there a way to give the inventory an item based off of the namespace? (ex. modname:infused_[itemname])

Edited by SquidR42 on Mon, 11/14/2022 - 04:08