Getting text input from an item in a block

Started by IanDoesHacks on

Topic category: Help with modding (Java Edition)

Last seen on 22:41, 29. Jan 2023
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Getting text input from an item in a block

In my mod I have an item bound to a GUI with a text input, this item is meant to be put in a workbench that reads the text in the item and gives different outputs depending on whats put in it. I'm just wondering if this is even possible and if so how?

Last seen on 02:40, 4. Jan 2022
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Use the item's NBT tags such…
Tue, 07/20/2021 - 01:14

Use the item's NBT tags such as text tags

 

When the text in the text box changes, replace the NBT text tag with the new text

 

Then the block reads the item's data