Topic category: Help with Minecraft modding (Java Edition)
For version 2023.2, making a mod for 1.19.4, I have zero clue how to use AI Conditions, and using tutorials (of which I only found one which doesn't even show what I need) has proved fruitless. I understand that they are separate procedures that are made outside of the AI generator, but for the life of me I just can't figure out how to use them, there's no option to make one in the generator and none of my previously made procedures show up when I click on the button to add a condition. Even if I figure out how to add them I have no idea how to implement what I want. I'm trying to make it so the "move indoors if possible" goal only fires at night for the mob in question akin to a villager, however in procedures while I can make an argument to fulfill the prerequisites for the condition to fire, I haven't found a way to link it to the AI Goal which again just ties back to how exactly does one set an AI Condition in the first place.
If anyone can help me with it or direct me to an appropriate tutorial on how to make a villager-like mob it would also be greatly appreciated.
uh I can anwer your quesiton.
villagers have many function than you though, so....
-> IT WILL REALLY HARD <-
I made 'hanew village mod', which entity named 'hanew' find bed at night, can trade with player, and more.
it took more than year to make all function, but still it not perfect.
you can find some tortoial for spawn village, make entity and procedure if you search
+
about AI goal, some of villager AI goal only for 'villager'
which mean you cannot use the ai goal other entity, even with code
you will need to make function with entity's procedures