Enchantment like smite

Started by Magmagenix on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Enchantment like smite

I want to create an enchantment similar to smite, but instead of doing extra damage to undead enemies it will do extra damage to Illagers, how do I create an enchantment like this?

I think I have solution for…
Fri, 05/14/2021 - 10:48

I think I have solution for you, as I am just making similar enchantment. With illagers it's a bit easier, because they have separate entity type ^^

I think it should look like this:

x

It's global trigger launching when entity is hurt. It's really important that you have source entity and target/event entity put correctly.

Didn't test it, but I think it should work. I will try similar enchantment with iron golems and we will see if I encounter any bugs ^^

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I've tried that procedure…
Thu, 08/12/2021 - 03:12

I've tried that procedure but it doesn't do anything, but for some reason it adds the level at the end of the swords name when I enchant it

That's weird. Since that…
Thu, 08/12/2021 - 11:32

That's weird. Since that comment from May, I already did that feature and it's working correctly in my mod (it's Dismantle enchantment here).

The only difference is that I used NBT tag, Entity tag and "iron golem" as attack's goal (NBT tag and Entity tag for other mods to use, they do not need to be used), but I don't think it is the case. Can you please show me the procedure itself?

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hey i know this is around a…
Sun, 10/16/2022 - 02:55

Hey i know this is around a year later but I still wanted to show you, and anyone else that needs help, the way I did it:

 

https://i.imgur.com/dXK9Yt2.png

Sorry that its a link I don't think normal images works

Basicity what i did is use somewhat similar to his code except I used a tag instead  any entity defined with illager
His code works for vanilla mods but if your creating custom mobs like me then this one seems to work better

Hope this helps and sorry for the year late response, i just started using mcreator like 3 days ago