WesJD / AnvilGUI

Capture user input in Minecraft through an anvil GUI in under 20 lines of code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Item changing automatically

ViiictorXD opened this issue · comments

commented

When I open the Anvil GUI, the leftItem and outputItem is changing automatically, follow my code:
image

Follow what happen (video):
https://github.com/WesJD/AnvilGUI/assets/38568440/01716eb0-6f20-42b9-b7de-2bf9219a868a

Well, from itemLeft the AnvilGUI takes its starting text. You calling .text on the Builder overwrites the Displayname "Back". The only reliable item that can keep its DisplayName is itemRight, otherwise you need to move the "Back" text into the lore aswell