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

Started by Gravitas on

Topic category: Help with Minecraft modding (Java Edition)

Active 5 years ago
Joined Apr 2018
Points:
689

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
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

Active 2 years ago
Joined Jul 2017
Points:
814

User statistics:

  • Modifications: 2
  • Forum topics: 10
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 105
"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[]"