How to set AI Conditions/ Custom Villager-type NPCs (resolved)

Started by Californian451 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to set AI Conditions/ Custom Villager-type NPCs (resolved)
Fri, 08/11/2023 - 14:34 (edited)

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.

Edited by Californian451 on Fri, 08/11/2023 - 14:34
Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If anyone can help me with…
Sat, 07/15/2023 - 00:22

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.

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
uh I can anwer your quesiton…
Sat, 07/15/2023 - 03:11

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

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
+about AI goal, some of…
Sat, 07/15/2023 - 03:21

+
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