Started by
littledude47
on
Topic category: Help with Minecraft modding (Java Edition)
I basically want my item to do more damage if a certain thing happens and can't find out how to do that
Topic category: Help with Minecraft modding (Java Edition)
I basically want my item to do more damage if a certain thing happens and can't find out how to do that
does the item have damge when you use it
?
I still haven't found an answer to this
Try using the "before entity hurt" event instead, using the same method I mentioned before.
The before entity hurt isn't supported by the generator I am using
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.
I'm using the 1.12.2 plugin for the mcreator 2020.4
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.
The plugin is also not supported by the generator and I don't think the attribute exists in this generator either