Nbt problem

Started by IFthenElse246 on Wed, 04/14/2021 - 22:30

Topic category: Troubleshooting, bugs, and solutions

Last seen on 15:58, 21. Apr 2021
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Nbt problem
Wed, 04/14/2021 - 22:30

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?

Last seen on 15:58, 21. Apr 2021
Joined Feb 2021
Points:

User statistics:

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

Darn image broke.

Last seen on 23:50, 11. May 2021
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
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!

Last seen on 15:58, 21. Apr 2021
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
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?

Last seen on 23:50, 11. May 2021
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
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

Last seen on 23:50, 11. May 2021
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
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.