How to make a smite/bane of athropods type of enchantment?

Started by Sebaz on

Topic category: Help with MCreator software

Last seen on 18:42, 22. Jun 2021
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a smite/bane of athropods type of enchantment?

I'm trying to figure out the procedure for it and nothing I've done has any effect on it. Can anyone give me some advice? Is the trigger supposed to 'entity attacked' and how does one apply the damage. Trying to make an ender-like enchantment that only affects mobs from the end (i.e endermen, the dragon, shulkers)

Last seen on 17:59, 7. Jan 2024
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(No subject)
Tue, 06/15/2021 - 22:13

Code for question

Last seen on 17:32, 15. Apr 2024
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
"damage of xyz" is…
Tue, 06/15/2021 - 22:31

"damage of xyz" is durability of the item, not the attack damage. Instead use dependency amount  or calc the damage based on enchant level. For example

if: player has enchant
do: damage target for {enchant level * some value}

or for example:

if: player has enchant
do: damage target for { [number dependency: amount] * some low percent}

Last seen on 17:59, 7. Jan 2024
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ah my bad. Feel like damage…
Wed, 06/16/2021 - 14:12

Ah my bad. Feel like damage and attack damage should be more easily shown using durability to make it less likely that someone with confuse the two.