// Set the displayed block
setDisplayedBlock(getType().getDefaultDisplayedBlock());
}
PhysicsComponent physics = getOwner().getPhysics();
physics.activate(1f, new BoxShape(0.98f, 0.49f, 0.7f), false, true);
// Add metadata for the shaking of the Minecart and the displayed Block
MetadataComponent metadata = getOwner().add(MetadataComponent.class);
metadata.addMeta(Metadata.TYPE_INT, 17, VanillaData.MINECART_SHAKE_FORCE);
metadata.addMeta(Metadata.TYPE_INT, 18, VanillaData.MINECART_SHAKE_DIR);