mojira.dev
MC-13

Arrows do not stick (and stay) in mobs

Arrows do not stuck in mob, but in adventure update was such innovation

Linked issues

Comments 18

I've had this problem also sometimes, but sometimes it is fixed after closing minecraft and logging back in again. It appears to happen very random.

it's because it caused too many other issues. It will be fixed once the entire rendering has been rewritten

The original reason Mojang stated for removing stuck arrows was due to enlarged mobs having comically enlarged arrows stuck in them. Rather than fix it or disabling stuck arrows only for enlarged mobs, Mojang opted to just disable it completely.

I can imaging that the code required to fix it right (so that even enlarged mobs have the correct arrow size) is rather complicated. Personally, I'd be happy if just PVP stuck arrows worked. That's the most fun situation for them.

I think there should be a toggle in the options for this that when you press it it refreshes your render so even if it was glitches you could simply retoggle it

8 more comments

Each entity has it's own instance, id's are irrelevant. You can scale differently depending on the size of the slime, which is just a datavalue thing I believe anyway, as you can spawn really large slimes with plugins/mob spawners/mods/other spawny thingies.

I don't believe they meant "scaling" as in the size of the arrow, more of the distance of the arrow relative to the center of the mob. For example, if you shoot a chicken, should the arrow be a whole block away while it's stuck?

On collision it should raytrace itself to one of the boxes of the mob, and then solve it's location on the face it hit, it should then child itself to that box with it's rotation point and offset set accordingly to it's collision point and travelling vector at the time of impact. That said the raytrace is probably not required as all the collisions in game use AABB anyway.

Edit: It already works on players so all this code is already implemented, It's probably just a pain to get it rendering correctly once the arrow becomes a child of the entities model, due to said scaling.

well that kinda sucks i was hoping it was meant to be there on purpose so i could laugh at where a skeleton hit me XD

This is a removed feature. It was buggy, like when shooting a ghast or big slime, it would put a giant arrow in them.

Arion White

(Unassigned)

Unconfirmed

Minecraft 1.4.1

Minecraft 1.4.3

Retrieved