checking if item is in main hand

Started by Tylerboy0704 on

Topic category: Help with Minecraft modding (Java Edition)

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?

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"

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

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

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. 

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 

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

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

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?