Skip to content
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

Add syntax to get anvil rename text #184

Open
Henriiig opened this issue Oct 20, 2024 · 3 comments
Open

Add syntax to get anvil rename text #184

Henriiig opened this issue Oct 20, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@Henriiig
Copy link

Henriiig commented Oct 20, 2024

Make it possible to somehow get the anvil rename text since this doesn't work at the moment: event.getInventory().getRenameText() and just returns when using it in a click event.

@Henriiig Henriiig added the enhancement New feature or request label Oct 20, 2024
@APickledWalrus
Copy link
Owner

I believe this expression is already included with Skript: https://docs.skriptlang.org/docs.html?search=#ExprAnvilText

@Henriiig
Copy link
Author

Henriiig commented Oct 20, 2024

@APickledWalrus I just tested it on 1.20.6 and I can use the syntax but it still returns none when using it inside of skript-gui click event. Would be cool if this worked since anvils are very nice to use for text inputs in skripts.

@APickledWalrus
Copy link
Owner

Interesting it might be because it's not a real anvil. I'm not sure if there is an easy way to open a real one, but I will look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants