Modeled Entity has no movement collision
When spawning an entity and changing the model with hitbox overwrite the movement collision of that entity breaks.
Other collisions, like Arrow, Snowball, and Egg, still hit the entity.
But as a player, you are not being pushed away when moving in.
Below is the code I use to spawn and set the data:
// PlayerUtil method gets the block on the ground, can be ignored.
Villager entity = (Villager) world.spawnEntity(PlayerUtil.getFirstBlockBelow(killed), EntityType.VILLAGER);
entity.setSilent(true);
entity.setAI(false);
entity.setInvulnerable(true);
entity.setCollidable(true);
entity.getCollidableExemptions().clear();
entity.setRotation(killed.getYaw(), killed.getPitch());
NamedTextColor textColorToConvert = event.getKilledPlayerTeam().getConvertedColor();
ModeledEntity modeledEntity = ModelEngineAPI.createModeledEntity(entity);
ActiveModel activeModel = ModelEngineAPI.createActiveModel(modelName);
modeledEntity.addModel(activeModel, true);
modeledEntity.setBaseEntityVisible(false);
modeledEntity.setModelRotationLocked(true);
activeModel.setGlowColor(textColorToConvert.value());
activeModel.setGlowing(true);
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information