Damage mobs the higher the effect amplifier (SOLVED)

Started by BryAstro on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Damage mobs the higher the effect amplifier (SOLVED)
Sun, 12/17/2023 - 12:10 (edited)

Basically I want to make it so if a certain mob has an effect it takes damage. Already done that, all I need to do is to make it so that the higher the amplifer of the effect the more damage the mob takes e.g. if effect is level V then the mob takes 5 damage instead of 1.

 

Version 2021.1 btw

Edited by BryAstro on Sun, 12/17/2023 - 12:10
Joined Mar 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
There is a "Get level…
Sun, 04/02/2023 - 08:40

There is a "Get level/amplifier of potion X for Y" block that does this.

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm using a 1.12.2 forge…
Sun, 04/02/2023 - 09:46

I'm using a 1.12.2 forge generator btw, and i think i used it and last time I checked, it didn't work.