Feeding/Breeding MOD need hep please.

Started by termin8tor_ on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Feeding/Breeding MOD need hep please.
Mon, 10/03/2022 - 13:21 (edited)

Hi Guys,
So I'm trying to make a mod where you can put food into a trough which would then feed the animals in a 6X6 radius. I have gotten everything to work so far except the breeding aspect. My idea is that I would use NBT tags that I found on Minecraft wiki to turn the animal's lovemode on or off depending on if they were just fed. But for some reason I cant get them to enter lovemode doesn't matter what I do. You will be able to see in the code that I even tried to use text as a form of debugging and it seems to take in the tag and not do anything with it. Was the same when I used other NBT tags as well, where it doesn't seem to do anything. Also im trying to use this on a tick update trigger so that it is constantly checking for animals around the trough(this is also proving to make things harder due to dependencies). Any help or suggestions would be greatly appreciated.I'm testing it on cows...

Edited by termin8tor_ on Mon, 10/03/2022 - 13:21