Started by IFthenElse246 on Wed, 04/14/2021 - 22:30
Topic category: Troubleshooting, bugs, and solutions
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:
I've made sure that the correct value is getting put into the nbt tag and that the name matches. Can anyone help?
Darn image broke.
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!
How would I get the link for, say, an image on my computer?
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
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.