Need some help with "When item in use tick" or "itemInPlayersHand[]"

Started by Gravitas on

Topic category: Help with modding (Java Edition)

Last seen on 17:25, 2. Sep 2019
Joined Apr 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Need some help with "When item in use tick" or "itemInPlayersHand[]"

Currently I'm trying to make an item that gives you a potion effect if you hold it. I can't seem to get it work though and need some help doing it. I tried the following:

The first thing I tried was this and it gave me an error in the compilation: https://imgur.com/a/uNqi3gC

 

The second thing I tried was this and it didn't do anything when I tried it out in game: https://imgur.com/a/ihiqOCg

Last seen on 20:38, 30. Dec 2022
Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
"When item in use tick"…
Sun, 05/06/2018 - 22:43

"When item in use tick" refers to when you hold the place button (default: right click)

try "when item is in inventory" with condition "itemInPlayersHand[]"