Get item with only its displayable name?

Started by vlonabuser on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Get item with only its displayable name?
Fri, 05/19/2023 - 18:29 (edited)

So, im making a shop gui, it has two procedures, first determines price variable and item to be set as variable (on gui tick) , second one compares price and balance and if its more or equal it spawns this item next to the player(by button). the problem is price procedure is very VERY big and to add more items to it or change the price i need to create new exact same procedure but with some small changes because mcreator simply crashes when im opening it. I thought about tags as price but i need to get the item variable only with item displayable name, is there any ways to do this with or without the coding? 

Edited by vlonabuser on Fri, 05/19/2023 - 18:29