You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Iron's Spells 'n Spellbooks incompatibility, shields have no collision #651
Seems like shields are multipart entities with possibly hard hitboxes, lithium might not expect that. If this is correct, this requires change in lithium
I would be interested in contributing to this as my first open source contribution.
This would be a new check for hitboxes that are not part of existing entities?
Would you be able to point me to the area of the code I should look at in Lithium?
I would have to look at the code of Iron's Spells 'n Spellbooks for how hitboxes work in that mod.
EDIT:
I found some code in Iron's Spells 'n Spellbooks that may be relevant.
The shield parts are registered as sub-entities.
The shield parent entity has canBeCollidedWith = false, with the subEntities having canBeCollidedWith = true. It seems that subentities with collision are only returned if the parent entity also has collision.
Maybe this is fixed by 6b41b4b but I think it didn't make it into the 1.21.1 release. You could check whether that code is in the 1.21.1 branch and backport it if needed
It looks like the names like ...WithoutDragonPieces and ...PlusDragonPieces are misleading where it's actually intended to get entities with or without subentities/parts listed in general.
Is getOtherEntitiesForCollision() meant to return getEntitiesOfEntityGroupPlusDragonPieces() instead of getEntitiesOfEntityGroupWithoutDragonPieces()?
if that's the case, then it looks like the bug would still occur on the develop branch.
Neoforge has the weird patch where they change dragon pieces to a general piece system, the names reflect the view from the fabric side, where this piece system does not exist. We can change it though if it is less confusing. I think it is best to return with the subentities exactly when the vanilla / fabric / neoforge method does
Neoforge has the weird patch where they change dragon pieces to a general piece system, the names reflect the view from the fabric side, where this piece system does not exist. We can change it though if it is less confusing. I think it is best to return with the subentities exactly when the vanilla / fabric / neoforge method does
Makes sense! It still seems like the issue could be the return on getOtherEntitiesForCollision. I'll test it out tonight
Activity
2No2Name commentedon May 14, 2025
Seems like shields are multipart entities with possibly hard hitboxes, lithium might not expect that. If this is correct, this requires change in lithium
Mbrenneman0 commentedon Jun 3, 2026
I would be interested in contributing to this as my first open source contribution.
This would be a new check for hitboxes that are not part of existing entities?
Would you be able to point me to the area of the code I should look at in Lithium?
I would have to look at the code of Iron's Spells 'n Spellbooks for how hitboxes work in that mod.
EDIT:
I found some code in Iron's Spells 'n Spellbooks that may be relevant.
The shield parts are registered as sub-entities.
line 20:
which has collision
line 19:
A workaround has been mentioned here:
#1101
Mbrenneman0 commentedon Jun 3, 2026
It seems like the issue is somewhere in the getOtherEntitiesForCollision path
The shield parent entity has canBeCollidedWith = false, with the subEntities having canBeCollidedWith = true. It seems that subentities with collision are only returned if the parent entity also has collision.
2No2Name commentedon Jun 3, 2026
Maybe this is fixed by 6b41b4b but I think it didn't make it into the 1.21.1 release. You could check whether that code is in the 1.21.1 branch and backport it if needed
2No2Name commentedon Jun 3, 2026
Seems like the
addEnderDragonPartsmethod is also not called in the right place, only in the projectile optimization.Mbrenneman0 commentedon Jun 4, 2026
It looks like the names like ...WithoutDragonPieces and ...PlusDragonPieces are misleading where it's actually intended to get entities with or without subentities/parts listed in general.
Is getOtherEntitiesForCollision() meant to return getEntitiesOfEntityGroupPlusDragonPieces() instead of getEntitiesOfEntityGroupWithoutDragonPieces()?
if that's the case, then it looks like the bug would still occur on the develop branch.
2No2Name commentedon Jun 4, 2026
Neoforge has the weird patch where they change dragon pieces to a general piece system, the names reflect the view from the fabric side, where this piece system does not exist. We can change it though if it is less confusing. I think it is best to return with the subentities exactly when the vanilla / fabric / neoforge method does
Mbrenneman0 commentedon Jun 4, 2026
Makes sense! It still seems like the issue could be the return on getOtherEntitiesForCollision. I'll test it out tonight
Fix multipart entities (dragon parts, modded part entities) missing f…
Fix multipart entities (dragon parts, modded part entities) missing f…
2No2Name commentedon Jul 16, 2026
This might be fixed by 4280765 . Backporting to 1.21.1 is needed.
Collide entities with EnderDragon, EnderDragonPart and Neoforge PartE…