How do I make a mob take more damage from a specific item

Started by guwno on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined May 2024
Points:
65

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 0
How do I make a mob take more damage from a specific item

I want to make a special sword that deals more damage than normal to a specific entity

Active 1 week ago
Joined Dec 2022
Points:
544

User statistics:

  • Modifications: 4
  • Forum topics: 46
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 52
It's actually very simple…
Fri, 05/03/2024 - 15:06

It's actually very simple. Go to the sword you wanna add this into, then create a new "when living entity is hit with tool" trigger, then add "deal ... damage to Event:Target entity

You can select the damage type. I recommand you put "player" in but you can make it so that it's fire damage for example or magic so that it bypasses armor.

Active 2 months ago
Joined Jun 2023
Points:
158

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
But this will make all mobs…
Fri, 01/03/2025 - 18:42

But this will make all mobs take more damage! @tdo

Active 1 month ago
Joined Jan 2023
Points:
266

User statistics:

  • Modifications: 2
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5
You can make an "if…
Sun, 03/30/2025 - 19:58

You can make an "if procedure" with a "is [entity] subtype of [choose the mob you want]" (you can find this at the bottom of the "LOGIC" tab) to select which mob you want the item to do more damage too :)