I want to create a creature that gives you poisons when it attacks you

Started by GrankfarYT on Thu, 09/01/2022 - 13:32

Topic category: Help with MCreator software

Last seen on 14:16, 27. Nov 2022
Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I want to create a creature that gives you poisons when it attacks you
Thu, 09/01/2022 - 13:32

I hope its fine that I created this forum, the other one was inactive and I did not get a response even after waiting for a few days. I want my mod to be done quite soon because of reasons.

 

So I found another forum thing talking about this topic and did as a person there told me too, but he/she did not explain good enouth for my small brain to understand how to make the game filter out all mobs except the one I created. When I tried it did not work.

My code bassicly: 

(global trigger) Entity attacked

If Source entity tagged in entity tags as "grankfars_buzzy_bugs:mosquito"

do Add potion POISON with level 1 for 60 ticks to Event/target entity

 

What should I do different?

 

Original conversation: https://mcreator.net/forum/67634/when-entity-attacks-entity

Last seen on 16:22, 20. Oct 2022
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
instead of tagged do sub…
Thu, 09/01/2022 - 16:06

instead of tagged do sub type entity thats found in logic category

Last seen on 14:16, 27. Nov 2022
Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
ty!
Fri, 09/02/2022 - 13:37

ty!