Started by
Tylerboy0704
on
Topic category: Help with Minecraft modding (Java Edition)
hi, i just download mcreator, and tried to make a simple "check if item is in hand, if yes: spawn this item" i used the "item in main-hand of event/target entity" but it doesnt seem to work, does anyone know how to make it work?
It needs to be in the right trigger. The triggers called "When item in hand"
and where does that stand? sorry if this is a stupid question but i cant seem to find it
on your custom item trigger click the When Item In Main Hand or smt like that, then make it spawn the item and for it not to crash make a cooldown, destroy the item etc etc however u want
on the global trigger there is no: when item on main hand, or do you mean something else, im really confused.
https://imgur.com/RKf1rdr
this is what i have right now, if theres a better way i'd like to know it
local trigger, like on your item go to the section Triggers and select the Item in hand
and where exactly do you find that? sorry if im asking so many questions
you do not need to specify item in main hand, remove the if statement and put it on a custom item trigger
and how do you do that?
Put your item on a trigger. Before doing a mod I recommend checking yt tutorials on how to do them.
see the videos found here https://youtube.com/playlist?list=PLAeL-oIFIEngE6jRgFYeFMfuj8WQsO3Ei
and if u still don't know, come back