When item in inventory inflict poison to entities attacked by player

Started by myxical on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined May 2021
Points:
715

User statistics:

  • Modifications: 0
  • Forum topics: 36
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 83
When item in inventory inflict poison to entities attacked by player

How do I make an item that when in inventory will make it so whenever you attack something, they get poison?

Active 1 year ago
Joined May 2021
Points:
715

User statistics:

  • Modifications: 0
  • Forum topics: 36
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 83
Not what I meant. The entity…
Fri, 06/18/2021 - 19:07

Not what I meant. The entity attacked should get poison, not the player.

Active 3 hours ago
Joined Nov 2019
Points:
839

User statistics:

  • Modifications: 0
  • Forum topics: 12
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 313
oh woops switch the "event…
Fri, 06/18/2021 - 23:23

oh woops switch the "event/target entity" with "source entity" 

Active 1 year ago
Joined May 2021
Points:
715

User statistics:

  • Modifications: 0
  • Forum topics: 36
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 83
I don't see the attacking…
Mon, 06/21/2021 - 16:32

I don't see the attacking part. Think of it like a poison sword.

Active 3 hours ago
Joined Nov 2019
Points:
839

User statistics:

  • Modifications: 0
  • Forum topics: 12
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 313
does it not work?
Mon, 06/21/2021 - 18:25

does it not work?

Active 3 hours ago
Joined Nov 2019
Points:
839

User statistics:

  • Modifications: 0
  • Forum topics: 12
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 313
if you have an item say…
Mon, 06/21/2021 - 18:28

if you have an item say honey bottle in your inventory, if a entity is attacked while you have it in your inventory they should get poisoned 

Active 1 year ago
Joined May 2021
Points:
715

User statistics:

  • Modifications: 0
  • Forum topics: 36
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 83
Okay, I guess that's what I…
Thu, 06/24/2021 - 10:51

Okay, I guess that's what I want. thanks

Active 3 hours ago
Joined Nov 2019
Points:
839

User statistics:

  • Modifications: 0
  • Forum topics: 12
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 313
well only if its you that…
Thu, 06/24/2021 - 20:15

well only if its you that attacks it, hopefully, test it out so its not if they take damage from something else, that might get chaotic