How to get breeding item(s) for vanilla mobs and have them put in "love mode" through procedure

Started by BlueAwesomeDinosaur on

Topic category: Help with modding (Java Edition)

Last seen on 21:04, 13. Sep 2024
Joined Aug 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to get breeding item(s) for vanilla mobs and have them put in "love mode" through procedure

I'm trying to figure out how to make a block that will get the breeding item for vanilla mobs and then put them in "love mode" (the name I found online for the mode animals go into when about to breed). I could hard code the items it gets but it would be preferable if it were not done that way.

Last seen on 20:37, 15. Sep 2024
Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I don't know how to get…
Tue, 07/30/2024 - 18:08

I don't know how to get breeding items but i know how to set mobs in "love mode" you need execute command in the xyz block in the world procedures tab and put
/execute as @e[type=cow,limit=1,nbt={InLove:0},sort=nearest,distance=..RADİUS] run data merge entity @s {InLove:LOVETİME}
You can change RADİUS with What radius you need to set mobs in "love mode" and LOVETİME to How long they be on the "love mode" with.

Sory if i make grammar mistakes English is not my main language.

Last seen on 20:37, 15. Sep 2024
Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
And also you can delete type…
Tue, 07/30/2024 - 18:11

And also you can delete type=cow or change it to any mob. If you delete it any mob in this radius will breed

Last seen on 21:04, 13. Sep 2024
Joined Aug 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks! I will try that and…
Tue, 07/30/2024 - 22:07

Thanks! I will try that and just hard code the food required