NBT Tags to Text

Started by tbroski on

Topic category: Advanced modding

Active 4 years ago
Joined Sep 2019
Points:
974

User statistics:

  • Modifications: 1
  • Forum topics: 14
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 507
NBT Tags to Text

This is regards to 'entity stored NBT' tags. Specifically, I want to show the value of an NBT tag in a GUI. However, I want the variable to be specific to the player and not to the server/world/map (global variables).

Simply, I want to show an 'entity stored NBT' to the player/entity without using global variables because that would inflict with other players, Right?

Active 4 years ago
Joined Aug 2019
Points:
1022

User statistics:

  • Modifications: 0
  • Forum topics: 31
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 450
GLOBAL_SESSION will not…
Fri, 10/25/2019 - 07:57

GLOBAL_SESSION will not conflict with other players as every player has their own instance of each GLOBAL_SESSION variable.

Active 4 years ago
Joined Sep 2019
Points:
974

User statistics:

  • Modifications: 1
  • Forum topics: 14
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 507
Oh great, thanks for the…
Fri, 10/25/2019 - 11:46

Oh great, thanks for the information! 

Active 2 years ago
Joined Jul 2016
Points:
785

User statistics:

  • Modifications: 5
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 34
Can I do this with NBT tag…
Mon, 12/09/2019 - 17:53

Can I do this with NBT tag for blocks.

For exemple I am doing a mod with energy but I don't know how to set the energy NBT in a label text. 

Active 4 years ago
Joined Sep 2019
Points:
974

User statistics:

  • Modifications: 1
  • Forum topics: 14
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 507
I am sure you could just try…
Tue, 12/10/2019 - 01:32

I am sure you could just try it out I guess. As long as you can set the NBT tag to a GLOBAL_SESSION variable I think it should we work.

 

I'm not to sure though

Active 2 years ago
Joined Jul 2016
Points:
785

User statistics:

  • Modifications: 5
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 34
Thanks for the answer but if…
Tue, 12/10/2019 - 16:28

Thanks for the answer but if I put 2 redstone generator it will be strange because it is comming to bug because one variable wil be replaced by two NBT so it will bug.