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

on item click: #8

Open
raphaelcolau opened this issue Mar 14, 2023 · 2 comments
Open

on item click: #8

raphaelcolau opened this issue Mar 14, 2023 · 2 comments

Comments

@raphaelcolau
Copy link

Description

"on item click" will not work if it is added on an item generated by sqript. If "on item click" is loaded at game launch on an item created with sqript then it will not work. However, if "on item click" is added on this same item when the game is launched via a /sqript reload, then it will work fine

Version: Sqript 1.2.6.2

@raphaelcolau
Copy link
Author

To avoid this problem, put the name of the item in brackets:

Example:

on item click with custom:item:
    #Will not work
on item click with (custom:item):
    #Will work

@raphaelcolau
Copy link
Author

I take back what I said. Putting brackets makes the event happen regardless of the item or block

on item click with (custom:item):
    #Works with any item or block

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

No branches or pull requests

1 participant