Traben-0 / Entity_Model_Features

Other
99 stars 18 forks source link

[Bug - models] Chest Minecarts don't respond to animation argument "is_riding". #245

Open BaudMarch opened 2 months ago

BaudMarch commented 2 months ago

Description When using "is_riding" in Blockbench animations, a minecart reacts accordingly, but a chest minecart doesn't.

Example : the following line should make it so a minecart riding another entity has its front bone made invisible: "front.visible": "if(is_riding,false,true)" it does work on minecarts, but not on chest minecarts (I tried making both models (minecart.json and chest_minecart.json). I tried with other attributes than visibility, such as scale, no luck. Chest minecarts still take other modifications, such as additional blocks. I didn't try other arguments or other special minecarts.

Version informations:

BaudMarch commented 2 months ago

I actually gave it a CustomTile of "air" and that makes it work (in conjunction with the chest_minecart.json). Also works with a CustomTile of "tnt" so I'd bet it works as long as there is a CustomTile set.

BaudMarch commented 4 weeks ago

Upgraded my whole data-resource pack to 1.21, now the animation works, however it works no matter if the chest_minecart is riding an entity or not. Though again this time it seems to work as intented when a CustomDisplayTile is set that is not a chest variant. it appears as though the .visible parameter is always interpreted as false by default when mentioned in an animation. An example might be useful :

Hence why I think that the bug is that as long as .visible is used in animations, the specified bone will just be invisible by default in its default state, even if it's not what is specified in said animation. (Also tried with is_on_ground condition, seems to yield the same results unfortunately)

However, as previously, it works as intended for the normal minecart.