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

Cursor slot #5050

Closed
1 task done
iPlexy opened this issue Aug 26, 2022 · 1 comment
Closed
1 task done

Cursor slot #5050

iPlexy opened this issue Aug 26, 2022 · 1 comment
Labels
completed The issue has been fully resolved and the change will be in the next Skript update. enhancement Feature request, an issue about something that could be improved, or a PR improving something. priority: lowest "Nice to have" updates that are not required (tiny low impact bug fixes or QoL enhancements).

Comments

@iPlexy
Copy link
Contributor

iPlexy commented Aug 26, 2022

Skript/Server Version

image

Bug Description

on inventory click:
    send "%cursor slot of player%"
    wait 1 tick
    send "%cursor slot of player%"

both returns "0 air"
while

on inventory click:
    send "%event.getCursor()%"
    wait 1 tick
    send "%event.getCursor()%"

does return dirt aka the right item

Expected Behavior

send the right item

Steps to Reproduce

on inventory click:
    send "%cursor slot of player%"
    wait 1 tick
    send "%cursor slot of player%"

click on dirt as cursor slot

on inventory click:
    send "%event.getCursor()%"
    wait 1 tick
    send "%event.getCursor()%"

click on dirt as cursor slot

Errors or Screenshots

No response

Other

No response

Agreement

  • I have read the guidelines above and affirm I am following them with this report.
@UnderscoreTud
Copy link
Member

Skript's cursor slot expression uses the getItemOnCursor method which doesn't work in creative due to how minecraft is coded, event.getCursor() on the other hand uses the cursor slot FROM the event which the expression doesn't

@AyhamAl-Ali AyhamAl-Ali added the enhancement Feature request, an issue about something that could be improved, or a PR improving something. label Aug 27, 2022
@AyhamAl-Ali AyhamAl-Ali added the priority: lowest "Nice to have" updates that are not required (tiny low impact bug fixes or QoL enhancements). label Sep 4, 2022
@TheLimeGlass TheLimeGlass added the PR available Issues which have a yet-to-be merged PR resolving it label Jan 2, 2023
@TheLimeGlass TheLimeGlass added completed The issue has been fully resolved and the change will be in the next Skript update. and removed PR available Issues which have a yet-to-be merged PR resolving it labels Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
completed The issue has been fully resolved and the change will be in the next Skript update. enhancement Feature request, an issue about something that could be improved, or a PR improving something. priority: lowest "Nice to have" updates that are not required (tiny low impact bug fixes or QoL enhancements).
Projects
None yet
Development

No branches or pull requests

5 participants