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 19:16, 9. Jul 2022
Joined Mar 2017
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 05:42, 27. Mar 2022
Joined May 2020
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 19:16, 9. Jul 2022
Joined Mar 2017
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 19:16, 9. Jul 2022
Joined Mar 2017
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 05:42, 27. Mar 2022
Joined May 2020
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

 

Last seen on 01:13, 28. Mar 2022
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Return ( not ( Get NBT tag …
Sat, 02/20/2021 - 20:06

Return ( not ( Get NBT tag "A" ) )

Do you mean this?