Started by
alpgonjustvi
on
Topic category: Help with Minecraft modding (Java Edition)
I want to return strings like this https://imgur.com/8600qFz
But it's allways returning the last one which is "No One". And I'm using this returning to overlay https://imgur.com/TN9KXbe
But the prosedure is running sucsesfully, with out returning.
The problem then would probably be the block not correctly saving the NBT data. (If none of the other tests pass, it's going to default to the basic return value.) Since the first test passing would return the owner or someone else, the first test is almost certainly the problem.
It's possible vanilla blocks wouldn't allow you to add an NBT tag they don't normally track? I'm not 100% sure how you'd fix this, but I recommend looking into the NBT stuff.
Thank you, I'll fix that.
https://imgur.com/9jdydsi but while I'm testing this type of the prosedure, It's working. The problem is about the returning parts. Do you still thinging that is the problem is about the NBT's?
Not totally sure, but you probably should be using a logic tag, not a string, if you want to save a true/false value. And getting the display name of a player will probably just return player, not the unique display name of the entity.
I'm pretty sure the issue is still going to be attempting to assign custom NBT strings to a vanilla block? Again, I'm not entirely sure what the issue would be, but I have had problems with this in the past.
I tried it in a differnt way. I used number returns. 0 = No one, 1 = Someone else, 2 = you. ( https://imgur.com/86UK5zJ ) It worked and I used number returns thing.
I created a new global prosedure which is getting the returning number values and it's sending me the values ( https://imgur.com/9N96qzm ). It's totaly correct. Just I can't use it in my overlay. Also I tried to return the values from the "ChestOwnerValuesGetter"PRCDR with strings but it didn't work again. So I thing the problem is about NBT and String Retrun combinations. You are a donator. I don't know your forge but maybe you can check it and try it the differences. Thank you.