How to use mob's conditions?

Started by ShAdOw112 on Sat, 11/28/2020 - 13:46

Topic category: Help with modding (Java Edition)

Last seen on 16:51, 17. Jan 2021
Joined Mar 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to use mob's conditions?
Sat, 11/28/2020 - 13:46

Hi! I created a custom mob and gave him AI. It should attack everyone except for entities whose have a tag. Is it possible to make it? If so, how to do this in mob's conditions?

Last seen on 15:06, 13. Jan 2021
Joined May 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Well I don't know how to…
Mon, 11/30/2020 - 05:29

Well I don't know how to explain this but...

First do you need to create the tag entity and put in that all the entities do you want, then create the procedure:

if (put the entity tag)  =  true

      return false

return true

In procedures with logic type you need to put "return true" under the condition. Well then go to your entity and make for the AI that can attack living entities or mobs (mobs are agressive entities), then in conditions of that put your procedure in the first condition and it's done. If you can't make tags entities you can put in the condition subtypes of the entities you want, put all of them like: [(subtype 1) or (subtype 2) ] = true

Last seen on 16:51, 17. Jan 2021
Joined Mar 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I did it like this: if this…
Mon, 11/30/2020 - 19:25

I did it like this:
if this entity has NBT tag "A"
do: Return: False
Return: False
But it still keeps beating me and I tried to change its target to Mob, Creature and AmbientCreature but it didn't even notice me (I didn't turn on the condition. What should I do?

Last seen on 16:51, 17. Jan 2021
Joined Mar 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
P.S. In the last 'Return' I…
Mon, 11/30/2020 - 19:26

P.S. In the last 'Return' I used "True"

Last seen on 15:06, 13. Jan 2021
Joined May 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You need to put  if this…
Mon, 11/30/2020 - 19:53

You need to put 

if this entity has NBT tag "A"  = true