Blade that inflicts a potion effect on the victim

Started by theeminer20 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Blade that inflicts a potion effect on the victim

Blade that inflicts a potion effect on the victim.
I want to give ANY mob I attack the poison effect when using my weapon, no enchantments, just the weapon.

ANY help would be much appreciated!

Joined Oct 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
its simple go to triggers,…
Tue, 11/04/2025 - 15:52

its simple go to triggers, then to when entity is hit then add potion effect. sometime it won't work then click save mod element again then itahoul work

Joined Feb 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I tried this exact thing…
Tue, 11/04/2025 - 17:11

I tried this exact thing. This is under "entity hit with."
It doesn't work...

Joined Apr 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Well thier are several…
Tue, 11/04/2025 - 18:04

Well thier are several issues with the screenshot. 1, you have no specification of the weapon, which would cause every entity that got attacked at all to get poison. 2, you have "source entity" rather than "event/target entity" which would cause the attacker to gain the effect rather than the victim.

Joined Feb 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I did have specifications…
Tue, 11/04/2025 - 18:26

I did have specifications for what weapon/item the "Source Entity" is holding, but a tutorial I watched said to take it out.
And the "source entity" rather than "event/target entity", that's just my bad.


I did try following this tutorial, but it didn't work, I'm assuming it's outdated:
https://www.youtube.com/watch?v=PO2PdDKc4jg

Also, this is where I'm at now, and still no result:

Joined Apr 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Well in this screenshot you…
Tue, 11/04/2025 - 18:32

Well in this screenshot you have taken out the additional trigger.

Joined Feb 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That worked! But it still…
Tue, 11/04/2025 - 18:47

That worked!

But it still doesn't work on zombies, or skeletons.

Joined Apr 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
zombies and skeletons are…
Tue, 11/04/2025 - 18:49

zombies and skeletons are healed by poison per the vanilla game. Healing potions hurt them.

Joined Apr 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Same for phantoms and the…
Tue, 11/04/2025 - 18:50

Same for phantoms and the whither. All undead are immune to poison/get hurt by healing.

Joined Feb 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oooh, alright thank you!
Tue, 11/04/2025 - 18:54

Oooh, alright thank you!

Joined Apr 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh wait! Ok, well if what…
Tue, 11/04/2025 - 18:59

Oh wait! Ok, well if what you have works that is fine but you can also just do a trigger within the weapon (Unless this is what you already tried.) Just go to triggers while in the item. do "If entity is hit with item" then just put the apply poison.