Display NBT value (number) on GUI text label

Started by ninjawizard1234 on

Topic category: Help with modding (Java Edition)

Last seen on 04:46, 14. Mar 2024
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Display NBT value (number) on GUI text label

hey guys, 

so i got this car fuel system im working on, put cell gasoline-> fill tank (+ value NBT) it works but it wont show me the current NBT value on the GUI, it wont update, i set up OnEntityTick to Return me the NBT value (entityFuel) there, and made another procedure to Return it in Text so i can display on the entity GUI - what im missin here ? thanks!

 

Entity NBT is not synced…
Wed, 12/13/2023 - 19:16

Entity NBT is not synced between client and server side.

MCreator 2023.4 will add synced entity data and you should use this for this purpose.

You can download pre-release which is out

Last seen on 04:46, 14. Mar 2024
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
but there must be a way to…
Wed, 12/13/2023 - 19:52

but there must be a way to do this on 2023 right?

Last seen on 04:46, 14. Mar 2024
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
2023.3
Wed, 12/13/2023 - 19:53

2023.3

Last seen on 04:46, 14. Mar 2024
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
im kinda scared of pass my…
Wed, 12/13/2023 - 20:41

im kinda scared of pass my workspace to a snapshot, i got 600 elements already, is there a way to do this with maybe local var? i would do it on any way i can

Last seen on 04:46, 14. Mar 2024
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
hey klemens i notice my…
Thu, 12/14/2023 - 00:38

hey klemens i notice my armor set does store nbt (i display them on the item name) isnt a armor piece a entity too?

Last seen on 04:46, 14. Mar 2024
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i just notice i can get the…
Thu, 12/14/2023 - 00:57

i just notice i can get the nbt back with a Item from right click an entity too, so i can do that but not dislay on gui on 2023.3? what about display on the overlay? thanks btw!

The answer is no. As I said,…
Thu, 12/14/2023 - 15:40

The answer is no. As I said, you will need 2023.4 for this.

Entity NBT is not synced between client and server side.

MCreator 2023.4 will add synced entity data and you should use this for this purpose.

im kinda scared of pass my workspace to a snapshot, i got 600 elements already

I would recommend backing up your workspace and testing out the snapshot anyway and report any potential bugs you find. If you copy your folder, nothing can really happen. You should make backups from time to time anyways just to be sure in case you delete something if you value your workspace.

If you don't do that, there is no guarantee your workspace will work on the next release.

Last seen on 04:46, 14. Mar 2024
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
oh well... rip lol, im…
Thu, 12/14/2023 - 17:20

oh well... rip lol, im waiting for the final realease of 2023.4 i guess

I would recommend backing up…
Fri, 12/15/2023 - 17:50

I would recommend backing up your workspace and testing out the snapshot anyway and report any potential bugs you find. If you copy your folder, nothing can really happen.

Last seen on 04:46, 14. Mar 2024
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i will get it after realease…
Sat, 12/16/2023 - 09:28

i will get it after realease prb i still have a lot to add on this workspace, i end up downgrading my entire fuel system back to cells (spend cells on ticks) looks more stable atm, maybe on the future they add more suport for entity-vehicle like tanks and energy system 

Last seen on 04:46, 14. Mar 2024
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
but i would love to help the…
Sat, 12/16/2023 - 09:29

but i would love to help the devs to test it on another workspace too if they need it :)

Last seen on 04:46, 14. Mar 2024
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
im on 2023.4 and i still…
Wed, 01/03/2024 - 22:50

im on 2023.4 and i still cant return that NBT :( i cant find nothing on google

Last seen on 04:46, 14. Mar 2024
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i call the procedure to…
Wed, 01/03/2024 - 23:07

i call the procedure to return the NBT and it wont give it back, and i know its working because i can return that NBT with a Item on right click, what is not working is the Return Text for the GUI :/

Last seen on 04:46, 14. Mar 2024
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
when you return a value from…
Wed, 01/03/2024 - 23:09

when you return a value from a entity on a GUI, the entity is the Entity/Target entity right?