Getting text input from an item in a block

Started by IanDoesHacks on Tue, 07/20/2021 - 01:01

Topic category: Help with modding (Java Edition)

Last seen on 00:44, 6. Aug 2021
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Getting text input from an item in a block
Tue, 07/20/2021 - 01:01

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:01, 27. Aug 2021
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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