Posted January 11, 20205 yr Hi there, I’m fairly new to modding with Forge, and I want to create a mod that synchronizes every player’s inventories so that every player shares the same inventory. I did some research and I believe the best way to do this would be to make a container on the server and use Container.detectAndSendChanges() to send a packet whenever a player’s inventory gets updated. I see that Container.detectAndSendChanges() sends the packet to all Container listeners, but how do I create a ContainerListener on the server?
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.