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

Edit item in slot without breaking the defined action #114

Open
Henriiig opened this issue Apr 12, 2022 · 3 comments
Open

Edit item in slot without breaking the defined action #114

Henriiig opened this issue Apr 12, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@Henriiig
Copy link

Henriiig commented Apr 12, 2022

Description

This addon is awesome but I came up with an idea.

It would be awesome if it was possible to edit an already defined item without removing the action of the previous item. This would make it easier to create dynamic GUIs without having to run a function every time you click the item to reopen the gui to the player.

Example:

image

@Henriiig Henriiig added the enhancement New feature or request label Apr 12, 2022
@APickledWalrus
Copy link
Owner

Would be good to have. One thing you can do for now is to just update the item in the slot.
set slot 0 of the gui to dirt (something like that)

@Henriiig
Copy link
Author

Would updating the item in the slot , using the way you suggest, not remove the action also?

@Fusezion
Copy link
Contributor

I'm going try to make a pull request today to add this syntax, while I'm not bright with java as I've basically never made anything with it I believe this is something that isn't impossible for me to do.

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

3 participants