-
Notifications
You must be signed in to change notification settings - Fork 28
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 window.hotbarEnd #36
Comments
or |
the 45th is offhand, idk, is that considered hotbar? |
If you want to activate an item or place a block you have to give extra arguments to place with the off-hand |
|
this won’t work in js regardless, to add to this for anyone looking at this issue later, you have to seperate comprasions with || or &&, |
Why?
Because the hotbar ends at slot 44 but the player has 45 inventory slots. If you want to check if an item is in your hotbar you could do
window.hotbarStart <= item.slot <= window.hotbarStop
. Instead ofwindow.hotbarStart <= item.slot <= 44
The text was updated successfully, but these errors were encountered: