Overlay DeSync from NBT Tag when entering a new dimensions.

Started by LaTortiia on Tue, 01/05/2021 - 22:51

Topic category: Troubleshooting, bugs, and solutions

Last seen on 15:15, 6. Mar 2021
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Overlay DeSync from NBT Tag when entering a new dimensions.
Tue, 01/05/2021 - 22:51

I have seen other forums and haven't found anything that solves this, I'm making a fallout type mod and I created a custom helmet called Gas Mask.

The gas mask has a Number NBT Tag worth 5m in ticks (to give 5 min of radiation protection), and I have also a Overlay that shows how many minutes are left.

The problem is that when entering a new dimension, the Number NBT Tag maintains it's value, but the Overlay shows 0.0

Is this a bug? How can I fix this?

 

Thanks beforehand.

If you use nbt on player,…
Wed, 01/06/2021 - 13:13

If you use nbt on player, use player variables as nbt is not synced by MC design by default.