Hostile entities friendly with certain items in inventory

Started by junevolerkes on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hostile entities friendly with certain items in inventory

Hello, fellow modders! I am trying to make a mod with different fractions of entities and I want the player to be able to choose which fraction to join. For Example, if the player is wearing armor of a certain entity group, members of that group do not attack the player. How could I change the AI behavior with with trigger "if player has this in their inventory" and is that even possible? Thank you for your time!

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Wow, that was so out of my…
Mon, 06/22/2020 - 03:46

Wow, that was so out of my scope! Thank you, thesupermodder for being so helpful.

Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It is possible with code, in…
Tue, 06/23/2020 - 04:28

It is possible with code, in fact, there are some other posts I have responded to that pertain to this same thing.

Check this out (will need a really, very small amount java knowledge).

https://mcreator.net/comment/135692#comment-135692

 

If you need information about how it works and etc. respond

 

Due to the linked posts not 'specific' title, this is not a double post. However, I would suggest to make 2 threads with elaborate titles, instead of one if you have two questions. This makes it easier to find it and there shouldn't be these types of posts. Of course, there is the exception that the post is outdated 💁‍♂️.