EntityEquipmentInventoryComponent doesn't work on entities (script 1.5.0-beta).
An odd issue is that "damagingEntity" and "hitEntity" are both "Entity," yet they only work when it's a player.
Other components don't have this issue.
![]()
How to reproduce the issue:
– Try using entity.getComponent("minecraft:equipment_inventory") on any entity.
Expected behavior:
– It should work the same way it does on players (returning EntityEquipmentInventoryComponent).
Methods used for testing:
world.afterEvents.entityHitEntity.subscribe( ({damagingEntity, hitEntity}) =>
)
Entities return undefined.
Players return EntityEquipmentInventoryComponent.
2023-07-07, 01:28 PM
2023-07-27, 12:11 PM
2
0
1077959
1.20.20.23 Preview, 1.20.20.22 Preview, 1.20.20.21 Preview, 1.20.20.20 Preview
-