Help with Item NBT Number Tags

Started by Saladifier on

Topic category: Help with Minecraft modding (Java Edition)

Active 3 years ago
Joined Sep 2021
Points:
540

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 7
Help with Item NBT Number Tags

I am trying to make a mod where I can inject a fuel into a helmet, and I can display the fuel level while the helmet is worn. I am trying to use NBT Tags to do this. I have declared in the injection procedure to set fuelLevel to 100, but when I go to call that anywhere else it isn't found. For example I want their to be natural seeping, and every tick I want to lose a fuel point, but it doesn't register the nbt tags.

Here is a video showing the procedures and the issue:

https://youtu.be/V8BjJv7Vc7U

Active 3 years ago
Joined Sep 2021
Points:
540

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 7
So I actually figured it out…
Thu, 09/23/2021 - 00:42

So I actually figured it out. The issue was I was using the nbt tag on helmet, rather than provided itemstack, so I had to reconfigure everything so the NBT could be on a specific thing that the user was wearing. Then I made a seperate update trigger for the helmet where it constantly set a global variable to equal the nbt tag. Now it works (:

Active 2 years ago
Joined Feb 2021
Points:
631

User statistics:

  • Modifications: 1
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 31
Okay so I know this was a…
Tue, 06/07/2022 - 03:23

Okay so I know this was a year ago but could you please show me how you did this/ go into more detail cause I'm trying to do something similar.

Active 3 months ago
Joined Jan 2022
Points:
636

User statistics:

  • Modifications: 0
  • Forum topics: 26
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 67
I could also use something…
Sat, 07/20/2024 - 00:38

I could also use something like that....