I'm new to developing mods in Minecraft and I'm currently trying to figure out how to move an item in the player's inventory from one slot to another.
I get that for this action to work, it has to be sent as a packet to the server, and I've read in the PlayerControllerMP class, that windowClick() "Handles slot clicks, sends a packet to the server."
This code should open the inventory and move the item from the first slot to the second slot in the hotbar. However, when I run it, it only ever opens the inventory and nothing happens to the item.
0
I get that for this action to work, it has to be sent as a packet to the server, and I've read in the PlayerControllerMP class, that windowClick() "Handles slot clicks, sends a packet to the server."
This code should open the inventory and move the item from the first slot to the second slot in the hotbar. However, when I run it, it only ever opens the inventory and nothing happens to the item.
What am I doing wrong?
Thanks for your help