Deal 50% more damage to undead mobs

Started by Jaw10_ on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Deal 50% more damage to undead mobs

How would i make a sword that deals +50% of my swords damge to only undead mobs?

 

Here is what ive gotten so far, i havent been able to figure out how to add a % to the "deal ____ damage" section, 

https://imgur.com/a/oT6UPVe

 

Any help is appreciated! :D

Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
why don't you just make it…
Tue, 11/21/2023 - 16:03

why don't you just make it so the sword is enchanted with a higher-than-max level of smite by default?

Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I was thinking that, but i…
Tue, 11/21/2023 - 18:18

I was thinking that, but i want players to be able to add Sharpness if they want as well, if smite is an enchantment, (If im correct) they wont be able to put sharpness on it :/

Joined Jan 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hey yo, fine? Don't know if…
Thu, 02/22/2024 - 01:10

Hey yo, fine? Don't know if you still figuring out how to to that but it's very simple.

 

First, create a new procedure and make it to be equal to mine:

Then, go to your item, and edit it, go to the "Triggers" tab and select you procedure on "When living entity is hit with tool" and select your procedure.

For now you wont be able to calculte a percente like 50% damage on the procedure, so you will need to make it manually and then set the damage value on the procedure, you can create one procedure for each tool, or only one for all, like in my mod.