Change texture after shear and wool regrowth

Started by Slexom on

Topic category: Help with modding (Java Edition)

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Change texture after shear and wool regrowth

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
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • 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 03:12, 31. Jul 2021
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • 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. :/

Last seen on 19:30, 8. Feb 2023
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Any luck? 
Sat, 08/28/2021 - 17:35

Any luck?