Can't get vanilla entity NBT tags

Started by ivanwafles67 on

Topic category: Help with modding (Java Edition)

Last seen on 19:34, 22. Dec 2023
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
Last seen on 14:22, 28. May 2023
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?

Last seen on 19:56, 27. Mar 2024
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?