Change texture after shear and wool regrowth

Started by Slexom on Fri, 05/29/2020 - 10:02

Topic category: Help with modding (Java Edition)

Last seen on 08:39, 16. Jun 2020
Joined May 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
Change texture after shear and wool regrowth
Fri, 05/29/2020 - 10:02

Good morning, I'm playing with the tool and I would recreate the Wooly Cow from MCE to familiarize with it a little. I've the textures and I've set the rigth click procedure to drop wool when use shear. Now I'm stucked. How can I change the texture to the sheared version and how can I set the wool to grow again after certain time? 

Last seen on 08:39, 16. Jun 2020
Joined May 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
I managed to save the…
Fri, 05/29/2020 - 21:49

I managed to save the sheared state, and  set back to shearable when it eat grass.
Now I've use nbt to save the state "sheared"(true or false). Is this the correct way to do? Do it keep the data if I close the game and open it again?

Last seen on 08:43, 12. Jul 2020
Joined May 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
The game should save the NBT…
Sat, 06/06/2020 - 01:27

The game should save the NBT data if you close and open the game but you would have to test it to be sure.

Also how did you make it detect if your holding shears because I'm trying to do something similar in a mod I'm making and I can't get it to work. :/