Is there a way to make a vanilla weapon to deal custom damage type?

Started by masterkostas on

Topic category: Advanced modding

Joined Jun 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is there a way to make a vanilla weapon to deal custom damage type?

Hi i need some help with this i really cannot find a way to make it happen!

Apparently if you set the Damage source to a custom type unless it's higher than the player damage dealt by that weapon doesn't override the value.

So far it tried both the "Entity Hurt" and "Entity Attacked" triggers.

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It should be possible to…
Fri, 02/14/2025 - 02:41

It should be possible to override the damage type but if it isn't for you for some reason, your next best option is to detect the event like normal then cancel it and perform your own damage event using your damage type.

Joined Jun 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I found a way to fix it…
Mon, 03/10/2025 - 23:35

I found a way to fix it thank you very much. I just made the damage bypass the invinsibility frames after damage and for some reason it cancelled generic.player.attack damage type.

I have no idea how to detect and cancel the event, i'd be interested in learning how if you have a  proc for it and you are willing to share it.