How to check for tags instead of block itself?

Started by luxlacis on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to check for tags instead of block itself?
Sun, 11/19/2023 - 19:01 (edited)

I'm trying to make it so that when you destroy any log without an axe you get no drops.

I got it to work that when it detects a specific block at a position it would drop air if you don't have an axe. BUT I was wondering if there's a way to detect a block with a specific tag, ie. log.

 

Anyone got any advice?

Edited by luxlacis on Sun, 11/19/2023 - 19:01
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok, I found the function…
Sun, 11/19/2023 - 19:01

Ok, I found the function that does this.