Started by
Kemuri Senpai
on
Topic category: Help with Minecraft modding (Java Edition)
My idea: if I start to break a block, my hotbar selection should jump to the slot with the "best" item to use. Like axe for a chest or pickaxe for stone
I want to make it client side, so it also works on servers which do not have my mod installed.
If someone has any idea for the code, please tell! I am not good at programming, usually I only use the procedure blocks
Thank you in forward!
I managed to do it :) If somebody needs the code for it - just contact me
I know i'm a bit late, but can you tell me how? I'm trying to make an autoscroller for random building!
I think he has abandoned the account, last online 10 months ago :(
I know a way to change hotbars.
If you need the code. Add me in discord: GrieferHacksYT#0096
then i just give it here so everyone has it. Didnt think of that.
The code to switch hotbars: "event.getPlayer().getInventory().setHeldItemSlot(4);"
It switches your hotbar with the current item you hold to the hotbar you want
at set.HelitemSlot(4) the 0 = 1 (0-8)