NBT Text Tag won't sync server-side?

Started by saajsterxpro on

Topic category: Help with modding (Java Edition)

Last seen on 17:31, 2. Jan 2022
Joined Oct 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
NBT Text Tag won't sync server-side?
Fri, 11/27/2020 - 18:17 (edited)

Hi,

I made a tile entity whereby you right click, it opens a GUI. You input text into the GUI and press a Submit button.

Then next time you right click, it will say "This is what is written:" followed by the text inputted into the GUI.

It works perfectly in singleplayer but if I try it on a server, the text after "This is what is written", ie the inputted text, is always blank.

Coding(?): I linked a procedure to the Submit button, it creates a NBT Text Tag called "tagMessage1" and makes it equal to the text box on the GUI. On right click of the block, I [Send message] [Get NBT text tag] "tagMessage1":

 

code for when right click block: https://prnt.sc/vreqei

 

code for submit button: https://prnt.sc/vreqxs

 

singleplayer results: https://prnt.sc/vrerej

 

server results: https://prnt.sc/vrerv1

 

Edited by saajsterxpro on Fri, 11/27/2020 - 18:17