Check the tag in the main-hand

Started by Sm0ke_ on

Topic category: Help with Minecraft modding (Java Edition)

Active 3 years ago
Joined Dec 2021
Points:
440

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
Check the tag in the main-hand

Hello, I would like to check if the item in the main hand with which the user interacts with the block has a certain tag. Could you tell me how to do it?

Active 3 years ago
Joined Dec 2021
Points:
440

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
I attach to you what I had…
Tue, 12/07/2021 - 14:18

I attach to you what I had done: essentially this works only with the bucket of water while I would like it to work also for lava and milk.

 

https://imgur.com/a/5oSOGQa.png