Can't get vanilla entity NBT tags

Started by ivanwafles67 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can't get vanilla entity NBT tags
Sat, 09/11/2021 - 20:07 (edited)

I am trying to make the player get bonus wool whenever they shear a sheep, and to do so I need to check the colour and state of the sheep using NBT tags (such tags are explained here). However, the procedure is not detecting these variables, and other testing showed that the variables are false and 0 (meaning it's not recognizing them). Thus, the bonus is always white wool and is given even when the sheep is already sheared.

How can I get the game to detect these variables properly so the bonus works as intended? 

 

Here's the block code:

Edited by ivanwafles67 on Sat, 09/11/2021 - 20:07
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have the same problem. How…
Sun, 05/28/2023 - 14:19

I have the same problem. How to make this question more popular? And why is there still no answer to it?

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
DId you figure this out?
Fri, 02/09/2024 - 20:02

DId you figure this out?