Nbt problem

Started by IFthenElse246 on

Topic category: Troubleshooting, bugs, and solutions

Active 3 years ago
Joined Feb 2021
Points:
586

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 7
Nbt problem

I've been trying to make a coin dropping system in my mod. It correctly places a block with a number nbt tag called "heldCoins" and sets the tag's value. However, when I right click the block, it removes one coin from me instead of giving me an amount of coins equal to the nbt tag's value. Here's my code:

code

I've made sure that the correct value is getting put into the nbt tag and that the name matches. Can anyone help?

Active 3 years ago
Joined Feb 2021
Points:
586

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 7
Darn image broke.
Wed, 04/14/2021 - 22:30

Darn image broke.

Active 4 months ago
Joined Aug 2020
Points:
914

User statistics:

  • Modifications: 3
  • Forum topics: 20
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 379
hi, I have a tip regarding…
Wed, 04/14/2021 - 23:06

hi, I have a tip regarding images on MCreator:

however, regarding the NBT problem, I'm not able to help right now. but I hope someone answers you soon enough!

Active 3 years ago
Joined Feb 2021
Points:
586

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 7
How would I get the link for…
Mon, 04/19/2021 - 02:16

How would I get the link for, say, an image on my computer?

Active 4 months ago
Joined Aug 2020
Points:
914

User statistics:

  • Modifications: 3
  • Forum topics: 20
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 379
you can copy the file…
Mon, 04/19/2021 - 04:03

you can copy the file address of the image on your computer, but it wouldn't even work online because it's only locally hosted on your PC & people online basically have no access to your PC. you should always upload it on an online image sharing service, such as: Pinterest, Imgur, imgbb, and the one you just used, Link Picture.

for more info, read this wiki page: https://mcreator.net/wiki/how-post-images-website

Active 4 months ago
Joined Aug 2020
Points:
914

User statistics:

  • Modifications: 3
  • Forum topics: 20
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 379
so about the NBT problem, I…
Mon, 04/19/2021 - 04:07

so about the NBT problem, I've remembered reading somewhere before that NBT is not synced between client and server. even if you're playing on singleplayer, there's still a server running in the background that handles the Minecraft world you're playing in, which your client is connected to. I think that's the main reason why you get that bug.