Started by
BlueAwesomeDinosaur
on
Topic category: Help with Minecraft modding (Java Edition)
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.
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.
And also you can delete type=cow or change it to any mob. If you delete it any mob in this radius will breed
Thanks! I will try that and just hard code the food required