Started by ddaisan on Sat, 10/28/2023 - 05:04 Topic category: Help with Minecraft modding (Java Edition) How can I detect the action of switching items? Jump to top You can store current in-hand item in a player variable (or maybe even NBT tag if you don't need client-server sync) and compare the current to the new one. Just make sure you don't do that every tick I would say as it could impact the performance Jump to top Permalink Log in or register to post comments
You can store current in-hand item in a player variable (or maybe even NBT tag if you don't need client-server sync) and compare the current to the new one. Just make sure you don't do that every tick I would say as it could impact the performance Jump to top Permalink Log in or register to post comments
You can store current in-hand item in a player variable (or maybe even NBT tag if you don't need client-server sync) and compare the current to the new one. Just make sure you don't do that every tick I would say as it could impact the performance