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

Started by Gravitas on Sat, 04/28/2018 - 20:26

Topic category: Help with modding (Java Edition)

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Need some help with "When item in use tick" or "itemInPlayersHand[]"
Sat, 04/28/2018 - 20:26

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 21:01, 25. Sep 2020
Joined Jul 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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[]"