SHsuperCM / CITResewn

Fabric implementation of mcpatcher's cit
MIT License
154 stars 76 forks source link

[SUGGESTION] player/mob attacking condition #284

Closed Angryfishdonut closed 1 year ago

Angryfishdonut commented 1 year ago

I think it'd be cool to change the item texture when the player or mob holding the item attacks. That way I could do sword to mace or sword to nunchuck renames that animate when attacking.

isattacking=true/false attackduration=(# in ticks or frames the texture lasts before reverting to the original texture)

SHsuperCM commented 1 year ago

Holder attacking or not sounds interesting, it could possibly need special handling in terms of caching tho as attacking or not changes frequently and it doesnt modify the item to invalidate the CIT cache.

Attack duration is out of scope, this should be a binary condition and not a case for animations. Should probably be done in a different mod that constantly modifies models or handles animations.