How can I make the amount of damage an item does change?

Started by littledude47 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I make the amount of damage an item does change?

I basically want my item to do more damage if a certain thing happens and can't find out how to do that

Joined Apr 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
does the item have damge…
Wed, 08/26/2020 - 19:39

does the item have damge when you use it

 

Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I still haven't found an…
Fri, 08/28/2020 - 21:28

I still haven't found an answer to this

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Try using the "before entity…
Fri, 08/28/2020 - 21:40

Try using the "before entity hurt" event instead, using the same method I mentioned before.

Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The before entity hurt isn't…
Fri, 08/28/2020 - 21:53

The before entity hurt isn't supported by the generator I am using

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Then what generator ARE you…
Sat, 08/29/2020 - 03:16

Then what generator ARE you using? Keep in mind that many generators are going to be missing a lot of support in relation to the main ones natively supported.

Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm using the 1.12.2 plugin…
Sat, 08/29/2020 - 04:02

I'm using the 1.12.2 plugin for the mcreator 2020.4

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Alright, well...you have two…
Sat, 08/29/2020 - 04:08

Alright, well...you have two options. Use the attribute modifier blocks to add to the default base damage for whatever item the entity is holding (these here: https://gyazo.com/358719d2abebc034bff2a5fa9c3a6298, and keep in mind when you set one, it disables all the other defaults (like attack speed), so you have to add that in as well), or you can use my plugin here: https://mcreator.net/plugin/65847/dtms-toolkit, allowing you to set the attack damage for the provided entity. So you can use that to set the damage of the entity (to deal extra damage) depending on a specific condition, then set the damage back to default when that condition is over.

Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The plugin is also not…
Sat, 08/29/2020 - 05:55

The plugin is also not supported by the generator and I don't think the attribute exists in this generator either