Posted April 24, 20232 yr So I have to get the current selected player slot of the inventory, is there a function that does this and returns a number or no? P.S. I'm in 1.16.5 (forge 36.2.34) and I now this version is no longer supported, but still is it the same from 1.16.5 to 1.18+? Thanks.
April 24, 20232 yr Author Nevermind, i figured out myself, for anyone that finds this post the thing is playerIn.inventory.currentItem that returns and int value for the hotbar
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.