Page 1 of 1

Collision boxes for attached entities

PostPosted: Sun Jun 28, 2015 18:04
by MirceaKitsune
https://github.com/minetest/minetest/issues/2851

I recently noticed that, if an entity is attached to another entity or a player, it no longer has a collision box, even if self.collisionbox is present. Would it be possible to make collision boxes work for attachments please, so that they can be punched or right-clicked?

Example from my mod, Creatures: I recently added 3D items, which allow the wielded item to show in the right hand as well as other inventory items to be worn on the body (such as on the belt). Obviously it relies on an attached Lua entity for each item. I was going to add support for pickpocketing, which would let players steal items from the mob's hand or belt by right-clicking them. After I noticed this limitation I had to drop the idea, because there's no way to select an attached entity by looking at it.

Re: Collision boxes for attached entities

PostPosted: Wed Jul 01, 2015 18:48
by ABJ
+1k
This is a good idea