Posted December 3Dec 3 Hi everyone,I recently started learning Forge modding and I’m trying to understand the proper way to handle simple gameplay events in Forge 1.20.1.Right now, I’m experimenting with detecting when a player right-clicks with a custom item, but I’m a bit confused about which event bus I should be using and where the listener should be registered.If someone could clarify the difference between the mod event bus vs the Forge event bus in the context of input / item-use events, that would really help. And if you have a small code example, even better.Thanks in advance!— Myroslav Mokhammad Abdeljawwad
December 3Dec 3 https://docs.minecraftforge.net/en/1.21.x/concepts/events/#mod-event-busTells the events on the mod event bus.Near the beginning of the page it states "The main event bus used for most events is located at MinecraftForge#EVENT_BUS
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.