Topic category: Troubleshooting, bugs, and solutions
I tried to find solution all this day, so I guess now I can ask you...
I have a block. This block have custom NBT tags (logical). This block also have GUI with some amount of button. In this GUI exists two buttons per one nbt tag, each of which should turn one logical NBT to true and to false. Only one of this button should be visible.
For example, if NBT false - we see only button which make NBT true. If NBT true - we see button which will turn it false. This buttons stay on one the same position.
Well... Firstly my block persistently didn't wanted set another name of NBT. By some miracle (I really don't understand how) I fixed it and now I have another problem - button press only once, pressing does not affect to other GUI elements.
I mean, I pressed it. I see debug message, that my tag finally become true, and... Another button, which should appear by cheching this NBT doesn't appear.
Now with photo:
Watching inside buttons:
and next - some procedures of this buttons:
and finally:
All additional clicks on this button don't even send messages to the chat, it's why I destroy it and place again to test.
I made something like this very a lot times in this mod: https://mcreator.net/modification/112377/enderbook , but there I generally used another type of variables. Now I don't need it, I trying to use NBT, and... I absolutely don't understand what I doing wrong. I probably rewatched whole youtube about it today
Wish u can help me, hope it's all about some stupid little mistake, after which I'm like, aaaaaah, that's it...
Thanks for attention!!!
- Log in or register to post comments