Started by
JopRillos2001
on
Topic category: Help with Minecraft modding (Java Edition)
Im making a mod where you can store bananas in a crate. Right clicking an empty crate with a banana change it to a filled crate, but no matter where my banana is in my inventory, it still fills it. I dont want this to be the case. The crate should only fill when holding the banana. How can I check for a banana in my main hand?
Edited by JopRillos2001 on Sat, 10/19/2019 - 22:34
I edited the question by adding an image
You use "if item in entity´s main hand"
https://ibb.co/k309Y7g
Thank you! That worked perfectly