checking if item is in main hand

Started by Tylerboy0704 on

Topic category: Help with modding (Java Edition)

Last seen on 18:18, 24. Nov 2021
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
checking if item is in main hand

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?

Last seen on 02:47, 23. Aug 2022
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It needs to be in the right…
Sun, 11/14/2021 - 17:11

It needs to be in the right trigger. The triggers called "When item in hand"

Last seen on 18:18, 24. Nov 2021
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
and where does that stand?…
Sun, 11/14/2021 - 17:28

and where does that stand? sorry if this is a stupid question but i cant seem to find it

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
on your custom item trigger…
Sun, 11/14/2021 - 18:02

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

Last seen on 18:18, 24. Nov 2021
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
on the global  trigger there…
Sun, 11/14/2021 - 18:54

on the global  trigger there is no: when item on main hand, or do you mean something else, im really confused. 

Last seen on 18:18, 24. Nov 2021
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
https://imgur.com/RKf1rdr…
Sun, 11/14/2021 - 18:58

https://imgur.com/RKf1rdr

this is what i have right now, if theres a better way i'd like to know it

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
local trigger, like on your…
Sun, 11/14/2021 - 18:58

local trigger, like on your item go to the section Triggers and select the Item in hand 

Last seen on 18:18, 24. Nov 2021
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
and where exactly do you…
Sun, 11/14/2021 - 19:03

and where exactly do you find that? sorry if im asking so many questions

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you do not need to specify…
Sun, 11/14/2021 - 19:03

you do not need to specify item in main hand, remove the if statement and put it on a custom item trigger

Last seen on 18:18, 24. Nov 2021
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
and how do you do that?
Sun, 11/14/2021 - 19:04

and how do you do that?

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Put your item on a trigger…
Sun, 11/14/2021 - 19:06

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