ContentTweaker icon indicating copy to clipboard operation
ContentTweaker copied to clipboard

Set attack damage and speed of custom items

Open ChiriVulpes opened this issue 7 years ago • 3 comments

I'm creating a set of custom tools, and would like to be able to model their attack damage based on vanilla tools. However, I don't see any support in mods.contenttweaker.Item for either attack damage or speed, or even an event handler for when an entity is hit.

If this is not currently possible, how would support be implemented? I might PR if it's not too complex. I think damage is done via attribute modifiers, correct? I guess providing full support for attribute modifiers would be relatively complex, since it would require adding a few new enums and classes, so maybe it's better to just leave the implementation to you.

ChiriVulpes avatar Feb 15 '18 20:02 ChiriVulpes

There's no interactions with entities currently see #74 ! But Modifiers wouldn't be super hard, as CraftTweaker already provides some mild support for those. if you're in TAC's discord I'd be happy to help with a PR.

SkySom avatar Feb 15 '18 20:02 SkySom

I'm not, a friend gave me invites to a few other misc modding servers but wasn't able to send an invite for the TAC one (also I couldn't find anywhere it was mentioned publicly).

I saw #74 but only its name, I assumed "interaction" meant right clicking. I should have clicked on it, I guess.

ChiriVulpes avatar Feb 15 '18 20:02 ChiriVulpes

https://discord.gg/5434DS

It was just to be interactions with entities in general

SkySom avatar Feb 15 '18 20:02 SkySom