-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom server inventory menus #50
Comments
Actually, I made a typo in wildcard, my bad, apologies. Fixing the typo made it behave as just a name, where it just doesn't apply at all. |
Name applies to the custom name of the entity (the name you put on it with a name tag). The screen title is used internally to guess the name if the server doesn't send the NBT (by default) as a workaround, but this shouldn't be relied on. If the villager has a profession, you can use the |
Sadly, setting a specific profession didn't help. I tried Another thing is villagers are not only npcs, some of them (mainly shops) are made via Player entities, and I tried this method, but it didn't work at all for them. |
Player entities don't support villager properties, that's how OptiGUI works (every entity type has no or only one preprocessor). |
I think I know what might be happening, I should realize it earlier. The server is running on some kind of hybrid of 1.12 and 1.13 allowing players to join from any versions after 1.12 and as professions were redone in 1.14 which the server is not running on, it won't work. It basically has some old data maybe, but villager appears with new textures and stuff. Also by |
The server can send a "handled screen" to the client without a container behind it. |
The next release of OptiGUI will ship an inspector, which lets you export selectors for an entity or block entity to the clipboard with a key press (#72). |
Some server menus use an item in inventory, instead of an npc or a block and OptiGUI Inspector can't copy its info. Is there any way to detect them at all? |
Can you attach a screenshot so I can see? |
If you right-click with the book, then it's |
Continuation of discussion from #49
I tried the snipped, but it didn't work, but I tried to put Entity ID in the group and it worked.
Now there are some issues, I don't know if they are caused by OptiGUI specifically or server specific stuff but for example I can't at all select a specific name, the custom texture will just never appear. Interestingly selecting name.wildcard selects everything for some reason.
Curretnly my .ini file looks like this:
I tried to select the name that has
smith
anywhere in it, yet it appears everywhere. When I setname
toBlacksmith
it never appeared, but I suspect that maybe there are some special characters or something for color codes for example but there is no way for me to check.As an example here is Item Identifier npc, it has no where in its name
smith
yet the texture changedThe text was updated successfully, but these errors were encountered: